Install docker centos 711/19/2023 ![]() ![]() sudo curl -L "$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose # Giving permissions sudo chmod +x /usr/local/bin/docker-compose # Test installation docker-compose -versionĪnd other than above two requirements, you need to have openSSL in your machine. The below command gives the latest docker compose and if you want to change the version, just use the relevant version number in the command. sudo systemctl start docker sudo docker run hello-world Install Docker Compose We have to start and test it by running two below commands. ![]() Then we have finished installing docker engine. # This command will list the versions available yum list docker-ce -showduplicates | sort -r sudo yum install docker-ce- docker-ce-cli- containerd.io If you want a specific version to be installed, then we have another command. sudo yum install docker-ce docker-ce-cli containerd.io To get the latest stable release, we can run below command. sudo yum install -y yum-utils sudo yum-config-manager \ -add-repo \ sudo yum remove docker \ docker-client \ docker-client-latest \ docker-common \ docker-latest \ docker-latest-logrotate \ docker-logrotate \ docker-engine If there are any other installation for docker exist in the server, we need to first uninstall them. The next step follows the official docker documentation installation process.Įnable centos-extras repository. After we have all the hardware requirements ready, we have to install the required software. First there are some prerequisites we have to have. So I thought to document the process I have followed.īefore going in to installation details, why Harbor? The reasons for us to choose harbor was its image scanning capabilities, helm chart repository capability and it can be freely used as we want. I needed to install a docker registry in Centos 7 machine recently. Harbor is a docker container image registry which is open source and it can be self hosted. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |