Docker Community Forums

Share and learn in the Docker community.

Yum repo for CentOS 8

Hi,

As CentOS 8 is released, please provide the yum repo for docker ce for CentOS 8.

thanks.

Thomas Stephen Lee

Hello Thomas
Official docker installation in some problem
Since the official version of the Docker CE supporting RHEL 8 / CentOS 8 is not ready yet, the docker repository currently contains Docker CE for RHEL 7 / CentOS 7 which comes with some installation caveats. If we try to install docker-ce, the system will notify us of a broken dependency problem generated when trying to install the latest version of the software.
Example:
Error:
Problem: package docker-ce-3:19.03.2-3.el7.x86_64 requires containerd.io >= 1.2.2-3, but none of the providers can be installed

  • cannot install the best candidate for the job
  • package containerd.io-1.2.2-3.3.el7.x86_64 is excluded
  • package containerd.io-1.2.2-3.el7.x86_64 is excluded
  • package containerd.io-1.2.4-3.1.el7.x86_64 is excluded
  • package containerd.io-1.2.5-3.1.el7.x86_64 is excluded
  • package containerd.io-1.2.6-3.3.el7.x86_64 is excluded
    (try to add ‘–skip-broken’ to skip uninstallable packages or ‘–nobest’ to use no

So At the time it’s give you a some dependencies problem
But you can try to do this.
https://linuxconfig.org/how-to-install-docker-in-rhel-8

Thanks for the replies.

We are still evaluating CentOS 8.

We will start upgrading after some more time.

We are waiting for some other packages to arrive :slightly_smiling_face:

We will wait for the official version to be released.

thanks.

Thomas Stephen Lee

You didn’t actually read the link. Please read the link. The is excluded error is caused by a bug in libsolv.

Steps that worked on Test machines are give below.

#For RHEL 8 and CentOS 8

$ dnf config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo

#For RHEL 8

$ dnf install container-selinux

$ dnf --disablerepo=rhel-8-for-x86_64-appstream-rpms install docker-ce

#For CentOS 8

$ dnf install container-selinux

$ dnf --disablerepo=AppStream install docker-ce

thanks.

Thomas Stephen Lee

Out of curiosity is getting “403 Forbidden” on all Linux repos an unfortunate accident or a decision that we were not yet informed about? Anything under linux is not 403, but somehow win and mac folders are accessible.

403 Forbidden

Code: AccessDenied
Message: Access Denied
RequestId: ...
HostId: ...

An Error Occurred While Attempting to Retrieve a Custom Error Document

Code: NoSuchKey
Message: The specified key does not exist.
Key: error.html

We are behind a firewall/proxy so we had issues with running images in RHEL 8 and CentOS 8 test machines in the internal network.
Looks like nftables support is needed.

I ran into this issue as well and I came up with a better solution by updating the docker.repo file to include the module_hotfixes=1 option. This works around the modularity issue by enabling all rpms included in the repo instead of excluding them. A better explanation can be found here.

The dnf.conf manpage states the following regarding the module_hotfixes option:

module_hotfixes
  boolean

  Set  this  to  True  to disable module RPM filtering and make all RPMs
  from the repository available. The default is False.  This allows user
  to create a repository with cherry-picked hotfixes that are included
  in a package set on  a modular system.
1 Like

Thanks.

Unrelated but,

Works for MariaDB official repo too.

https://downloads.mariadb.org/mariadb/repositories

Any plans to support with 20.03 release of Docker CE ?