Answers for "install docker on debian"

0

install docker on debian

Delete any outdated packages: 
sudo apt-get purge docker lxc-docker docker-engine docker.io

Update the default respository: 
sudo apt-get update

Download the following dependencies: 
sudo apt-get install apt-transport-https ca-certificates curl gnupg2 software-properties-common

Download Docker’s official GPG key to verify the integrity of packages
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -

Add the Docker repository to your system repository
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian buster stable"

Update the apt repository:
sudo apt-get update

Install Docker Engine and containerd:
sudo apt-get install docker-ce docker-ce-cli containerd.io

Check the status by typing:
systemctl status docker

Another way to check the installation:
docker -v

Optional: Verify the Installation With a Hello World Image
docker run hello-world

To remove docker:
sudo apt-get purge docker-ce
sudo rm -rf /var/lib/docker
Posted by: Guest on August-18-2021
1

debian docker

# Install docker
sudo apt install -y apt-transport-https ca-certificates curl gnupg2 software-properties-common
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable"
sudo apt update
apt-cache policy docker-ce
sudo apt install -y docker-ce

# Install docker-compose
sudo curl -L "https://github.com/docker/compose/releases/download/1.27.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
Posted by: Guest on December-19-2020
1

install docker debian

$ sudo apt-get update
 $ sudo apt-get install docker-ce docker-ce-cli containerd.io
Posted by: Guest on May-22-2020
0

install docker linux debian 10

sudo apt-get purge docker lxc-docker docker-engine docker.io
Posted by: Guest on April-07-2021
0

install docker debian

sudo apt -y install apt-transport-https ca-certificates curl gnupg2 software-properties-common
Posted by: Guest on December-14-2020
0

install docker debian 10

$ curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
Posted by: Guest on May-29-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language