This technical support article helps us to download and install docker and docker-compose in the CentOS Stream -9 Operating System. We will also provide a script which can be directly executed on the system to automate the whole process. In this tutorial, we have used yum package manager. However, nowadays, people prefer dnf package manager.
To execute installation commands, we must have root or sudo user privileges.
Installation procedure to install docker
At the very first, we will download the docker repo.
Once the repository file is downloaded, copy it to the /etc/yum.repos.d/docker-ce.repo
.
Install Docker to CentOS Stream 9
If docker-ce is already installed in our system, then we can use the following command to remove it from the system.
To install docker in our system, use the following command.
Start and Enable Docker Service in the CentOS Stream 9
Installation procedure to install docker-compose
Visit the following site and find the latest version of docker-compose. In this example, we have used v2.7.0. However, it may be quite possible that the latest version will be different. In that case, replace v2.7.0 with the latest version.
Links to download the whole script, which helps us to perform all the tasks automatically.
1) Install docker and docker-compose in CentOS Stream 9
CITE THIS AS:
“Installation of Docker and Docker Compose in CentOS Stream 9” From NotePub.io – Publish & Share Note! https://notepub.io/technical-support/installation-of-docker-in-centos-stream-9/
原创文章,作者:奋斗,如若转载,请注明出处:https://blog.ytso.com/294942.html