
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.

This happens when that specific version of containerd.io is not yet added to the CentOS repository.Harbor is a docker container image registry which is open source and it can be self hosted. Otherwise, if it fails that the docker-ce requires containerd.io version to be higher than a specific version, then you can fix this by installing the containerd.io manually. If you have successfully installed Docker, then you can skip this step and proceed to configure Docker section. Next, install Docker by running the command: sudo yum install docker-ce docker-ce-cli containerd.io This will remove conflicting podman and buildah: sudo yum erase podman buildah In case that you are getting an error that containerd.io conflicts with runc, or similar below, Now that we have our prerequisites installed, we are now ready to setup Docker. To add, install the yum-utils first and then add the repo. sudo yum remove docker docker-client docker-client-latest docker-common docker-latest docker-latest-logrotate docker-logrotate docker-engineĪdd the Docker repository in your CentOS machine. To uninstall old docker, run the command below. If you have an older version of Docker, uninstall it first.
