Docker Community Forums

Share and learn in the Docker community.

Docker Repo for Linux CentOS use wrong path

The baseurl in the docker repo was populated incorrectly. I’ve tried to use it recently, but it’s failing to install the docker because of wrong repo configuration.

repo: https://download.docker.com/linux/centos/docker-ce.repo

baseurl=https://download.docker.com/linux/centos/$releasever/$basearch/stable
should be:
baseurl=https://download.docker.com/linux/centos/7/$basearch/stable

Would someone bring this up to Docker team please.

You can use official docker instruction to install docker-ce on CentOS. For installing in a specific path, you can use yum install command with --installroot=root switch. Something like this:

sudo yum install docker-ce docker-ce-cli containerd.io --installroot=/opt/docker