

Whereas to stop, if required, you can run: sudo systemctl stop dockerīy default our current user is not the part of Docker group, hence every time to run its command we have to use sudo with it. If it is not running then, start it: sudo systemctl start docker

Once the installation is completed you can check the status of the docker service whether it’s running normally without generating errors.įirst Check status: sudo systemctl status docker sudo apt-get install docker-ce docker-ce-cli containerd.io Command to install Docker Engine on Debian 11 Bullseyeįinally, here is the command to install Docker Engine community edition, containerd, and the command line. To let the system recognize the newly added repository, run the system update command once: sudo apt updateĥ. $(lsb_release -cs) stable" | sudo tee /etc/apt//docker.list > /dev/null curl -fsSL | sudo gpg -dearmor -o /usr/share/keyrings/docker-archive-keyring.gpgĪfter adding the GPG key it’s time to manually create a repository file that holds the official Docker repo link to let the system download and install packages available through it.Įnter the whole single command in your terminal and hit the Enter key. It is because Debian needs to verify that whatever packages we are getting to install the Docker platform are from a genuine source without any alteration using this key.

Next, add the GPG key that is necessary without it the system will generate an error after adding the repository. sudo apt update sudo apt-get install apt-transport-https ca-certificates curl gnupg So, first, run the system update command and then the next one to get the additional packages. Install Dependenciesįew things should be there on the Debian system before installing Docker. The steps given here will also work for earlier versions of this Linux such as Debian 10 buster and other Linux based on it. Remove any older installations of Docker that may be on your system: sudo apt remove docker docker-engine docker.Uninstall and Remove Docker (optional) Docker Installation on Debian 11 Bullseye To install on another distribution, or to install on Mac or Windows, see the official installation page. These steps install Docker Community Edition (CE) using the official Debian repositories. Updated Thursday, Maby Linode Written by Linode
