Add debian/debian-docker-root.sh
This commit is contained in:
parent
e1fc4b0b11
commit
9d1140c05a
1 changed files with 21 additions and 0 deletions
21
debian/debian-docker-root.sh
vendored
Normal file
21
debian/debian-docker-root.sh
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
#!/bin/bash
|
||||
echo "Please confirm installing dependencies"
|
||||
apt update
|
||||
apt install -y ca-certificates curl
|
||||
|
||||
echo "Installing docker..."
|
||||
install -m 0755 -d /etc/apt/keyrings
|
||||
curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc
|
||||
chmod a+r /etc/apt/keyrings/docker.asc
|
||||
|
||||
echo \
|
||||
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian \
|
||||
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
|
||||
tee /etc/apt/sources.list.d/docker.list > /dev/null
|
||||
|
||||
|
||||
echo "Installing docker now, please confirm"
|
||||
apt update
|
||||
apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
|
||||
|
||||
docker run hello-world
|
Loading…
Add table
Add a link
Reference in a new issue