simbafs

simbafs / Debian 13 Install Docker

Last active 1 week ago

Like 0

simbafs revised this gist 1 week ago · 08322cc

1 file changed, 20 insertions

docker.sh (file created)
@@ -0,0 +1,20 @@
1 + # Add Docker's official GPG key:
2 + sudo apt update
3 + sudo apt install ca-certificates curl
4 + sudo install -m 0755 -d /etc/apt/keyrings
5 + sudo curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc
6 + sudo chmod a+r /etc/apt/keyrings/docker.asc
7 +
8 + # Add the repository to Apt sources:
9 + sudo tee /etc/apt/sources.list.d/docker.sources <<EOF
10 + Types: deb
11 + URIs: https://download.docker.com/linux/debian
12 + Suites: $(. /etc/os-release && echo "$VERSION_CODENAME")
13 + Components: stable
14 + Architectures: $(dpkg --print-architecture)
15 + Signed-By: /etc/apt/keyrings/docker.asc
16 + EOF
17 +
18 + sudo apt update
19 +
20 + sudo apt install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin