pargre.blogg.se

Installing docker on debian
Installing docker on debian






installing docker on debian

To check for successful installation of docker, you can use the hello-world image: sudo docker run hello-worldĪnd it will download a hello-world image, greet you, and will exit by itself:īut if you haven't noticed, it requires sudo (superuser privileges) to work with docker images. Now, you can use the given command to install the most recent version of docker: sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin Running Hello World image in Docker $(lsb_release -cs) stable" | sudo tee /etc/apt//docker.list > /dev/null Installing Docker in Debianįirst, you have to update the repository index to take effect from the changes you've just made: sudo apt update The repository is where the packages are stored and to add a docker repository in Debian, utilize the given command: echo \ GPG keys are used to authenticate the packages to verify the source of the package.Īnd to add the GPG key for docker, the following command should get the job done: curl -fsSL | sudo gpg -dearmor -o /etc/apt/keyrings/docker.gpg

installing docker on debian

Next, you have to use the following command to create /etc/apt/keyrings if it does not exist by default: sudo mkdir -p /etc/apt/keyrings Adding GPG Keys Installing the latest Docker in Debianįirst, you have to install the following packages so you can use HTTPS over the apt repository: sudo apt-get install ca-certificates curl gnupg lsb-release

installing docker on debian

However, if you don't care about having the most recent versions, you can use the given command and docker will be installed on your Debian system: sudo apt install docker.ioīut if you are looking for a way to get the most recent images, you must utilize the official repository to install docker.īefore jumping to the installation part, it is necessary to remove the older version of Docker: sudo apt-get remove docker docker-engine docker.io containerd runcĪnd this tutorial is all about how you can install docker using the official repository. Docker is available in the default repository of Debian but by its nature, you are bound to get old docker versions.








Installing docker on debian