![]() Don't want to use sudo with Docker commands all the time? Next section solves your problem. 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. Docker is a containerization platform that allows you to quickly build, test and deploy applications as portable, self-sufficient containers that can run virtually anywhere. 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 deb package For some reason, if you are unable to install Docker using the preceding repository method, you can download the. ![]() 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 ![]() 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. Install Docker Desktop (You must download the deb package first from step 2 from the following document: Install Docker Dekstop) sudo apt-get install. Docker is available in the default repository of Debian but by its nature, you are bound to get old docker versions. ![]()
0 Comments
Leave a Reply. |