|
|
@ -138,15 +138,17 @@ sudo apt autoremove
|
|
|
|
sudo apt update
|
|
|
|
sudo apt update
|
|
|
|
|
|
|
|
|
|
|
|
# Install pre-requisites
|
|
|
|
# Install pre-requisites
|
|
|
|
sudo apt install ca-certificates curl
|
|
|
|
sudo apt install ca-certificates curl gnupg lsb-release
|
|
|
|
|
|
|
|
|
|
|
|
# Import the GPG key
|
|
|
|
# Import the GPG key
|
|
|
|
|
|
|
|
sudo mkdir -m 0755 -p /usr/local/share/keyrings
|
|
|
|
|
|
|
|
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /usr/local/share/keyrings/docker.gpg
|
|
|
|
|
|
|
|
|
|
|
|
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
|
|
|
|
# Add the repo for Docker
|
|
|
|
|
|
|
|
|
|
|
|
# Next, point the package manager to the official Docker repository
|
|
|
|
echo \
|
|
|
|
|
|
|
|
"deb [arch=$(dpkg --print-architecture) signed-by=/usr/local/share/keyrings/docker.gpg] https://download.docker.com/linux/debian \
|
|
|
|
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(. /etc/os-release; echo "$UBUNTU_CODENAME") stable"
|
|
|
|
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
|
|
|
|
|
|
|
|
|
|
|
|
# Update the package database
|
|
|
|
# Update the package database
|
|
|
|
|
|
|
|
|
|
|
@ -155,7 +157,7 @@ sudo apt update
|
|
|
|
|
|
|
|
|
|
|
|
apt-cache policy docker-ce
|
|
|
|
apt-cache policy docker-ce
|
|
|
|
|
|
|
|
|
|
|
|
sudo apt install docker-ce
|
|
|
|
sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
|
|
|
|
|
|
|
|
|
|
|
|
sudo gpasswd -a username docker
|
|
|
|
sudo gpasswd -a username docker
|
|
|
|
~~~~
|
|
|
|
~~~~
|
|
|
|