You will also find various docker tutorials on RDR-IT. If you’re new to Docker or you don’t know what it’s for, you can read this tutorial : Here you will find several applications ready to be used with docker-compose. It’s finished, Docker and docker-compose are installed.Īll you have to do is deploy your containers. Now we make the docker-compose file executable: sudo chmod +x /usr/local/bin/docker-compose To install docker-compose, we will retrieve the file directly from the Github repository : ĭownload docker-compose: sudo curl -L "" -o /usr/local/bin/docker-compose The main advantage of using docker-compose is to use configuration files to launch the containers, which allows for easier administration and configuration. Docker is a container-based application framework, which wraps a specific application with all. With the help of this software, programmers can develop, ship, and execute their code as a container anywhere, like on-prem or public cloud. How to Install Docker on Debian 11 Installing packages dependencies for Docker Add Docker key and repository Installing Docker container Checking docker. How to install docker on debian 10 /11 ( buster / bullseye ). We will now move on to installing docker-compose which is optional to use containers. How to install Docker on Debian 11 written by Emmanuel JanuShare D ocker is an open platform tool that offers a container run time environment. The Docker containerization engine is installed. Install Docker: sudo apt-get install docker-ce docker-ce-cli containerd.io -y $(lsb_release -cs) stable" | sudo tee /etc/apt//docker.list > /dev/null Install prerequisites: sudo apt-get install ca-certificates curl gnupg lsb-release -yĪdd repository GPG key: curl -fsSL | sudo gpg -dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg Make sure you have your distribution up to date: sudo apt update Both containerd and docker should be running on your Docker host. The Docker Engine required the containerd, which is used as the default container engine. During this writing, Docker v24.0.4 is installed on Debian 12. Installing Docker and docker-compose from the Docker repository After installing Docker, run the following command to check the version. The problem as often with official repositories is the update time to the latest versions which can be long, so I will explain how to install Docker and docker-compose from the Docker repository in order to have the latest version. Installing docker-compose: sudo apt install docker-compose Installing Docker: sudo apt install docker.io Installing Docker and docker-compose from the Docker repository Installation of Docker and docker-compose from the official repositoriesĭocker and docker-compose are part of the official repositories of both distributions (Ubuntu and Debian), so just run the two commands below:.Installation of Docker and docker-compose from the official repositories.To let your normal user to run docker commands you need to add the user to the docker group sudo usermod -aG docker All in one script #!/bin/bashĮxec sudo /bin/bash "$0" "Installing Docker."Īpt-get install -y apt-transport-https ca-certificates gnupg-agentĮcho "deb $(lsb_release -cs) stable" | tee /etc/apt//docker.listĪpt-get install -y docker-ce docker-ce-cli containerd. Sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-compose Allow user to use Docker Sudo apt-get install -y apt-transport-https ca-certificates gnupg-agent Add Docker repo and GPG key the GPG key using wgetįirst download the GPG key from wget -q -O- | sudo apt-key add -Īnd then add the Docker repo echo "deb $(lsb_release -cs) stable" | sudo tee /etc/apt//docker.list Install Docker & docker-compose sudo apt-get update Dependencies for installing Dockerįirst we need to install some dependencies to be able to use a repo over https sudo apt-get update And I like to install as few packages as I can, so I am using wget instead of curl. There is an official guide over at but it uses curl which is not installed by default in Debian 10. Installing Docker on Debian 10 is not just apt-get install docker Docker is awesome to quickly get a service up an running.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |