plesinc.blogg.se

Installing docker on debian
Installing docker on debian











installing docker on debian installing docker on debian

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.

installing docker on debian

We will now move on to installing docker-compose which is optional to use containers. The Docker containerization engine is installed. Install Docker: sudo apt-get install docker-ce docker-ce-cli containerd.io -y

installing docker on debian

$(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 Installing Docker and docker-compose from the Docker repository 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.













Installing docker on debian