9/22/2023 0 Comments Install docker debian![]() ![]() Your system is now ready for Docker installation. sudo add-apt-repository "deb stretch stable" You must have to enable this repository to install Docker on Debian. curl -fsSL | sudo apt-key add -Īfter that add the Docker repository on your Debian system which contains Docker packages including its dependencies. Now import dockers official GPG key to verify packages signature before installing them with apt-get. Run the below commands to do this: sudo apt-get install apt-transport-https ca-certificates curl gnupg2 software-properties-common Now install some required packages on your system for installing Docker on Debian system. sudo apt-get purge docker lxc-docker docker-engine docker.io Execute commands to remove unnecessary Docker versions. The very first step is to remove any default Docker packages from the system before installation Docker on a Linux VPS. This tutorial will help you to install Docker on Debian 9 Stretch. Docker containers can easily to ship to the remote location on start there without making entire application setup. You will also find various docker tutorials on RDR-IT.Docker is a container-based application framework, which wraps a specific application with all its dependencies in a container. 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. ![]() ![]() 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 $(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. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |