Install Docker 19.03 on CentOS 8+
Daniel Nashed – 25 September 2020 08:55:57
RedHat is still shipping an older containerd version with CentOS 8 than what they shipped with CentOS 7.
This blocks Docker 19+ installations. The only way to get Docker installed, is to use the -nobest option which will install Docker 18.x.
But you really want to install Docker 19.03
Here is how it looks like when you installed with -nobest option. An update will not work and also block some other updates.
yum update
Last metadata expiration check: 0:31:00 ago on Fri 25 Sep 2020 10:14:12 AM CEST.
Error:
Problem: package docker-ce-3:19.03.13-3.el7.x86_64 requires containerd.io >= 1.2.2-3, but none of the providers can be installed
- cannot install the best update candidate for package docker-ce-3:18.09.1-3.el7.x86_64
- package containerd.io-1.2.10-3.2.el7.x86_64 is filtered out by modular filtering
- package containerd.io-1.2.13-3.1.el7.x86_64 is filtered out by modular filtering
- package containerd.io-1.2.13-3.2.el7.x86_64 is filtered out by modular filtering
- package containerd.io-1.2.2-3.3.el7.x86_64 is filtered out by modular filtering
- package containerd.io-1.2.2-3.el7.x86_64 is filtered out by modular filtering
- package containerd.io-1.2.4-3.1.el7.x86_64 is filtered out by modular filtering
- package containerd.io-1.2.5-3.1.el7.x86_64 is filtered out by modular filtering
- package containerd.io-1.2.6-3.3.el7.x86_64 is filtered out by modular filtering
- package containerd.io-1.3.7-3.1.el7.x86_64 is filtered out by modular filtering
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
You can download the newer package needed, here -> https://download.docker.com/linux/centos/7/x86_64/stable/Packages
The current version can be installed linke this (this will change over time)
dnf install -y https://download.docker.com/linux/centos/7/x86_64/stable/Packages/containerd.io-1.3.7-3.1.el7.x86_64.rpm
Once you updated containerid, you just run an update via yum:
yum update
In my case this updated 154 packages!
So apparently this blocked other updates as well..
Stay with CentOS 7 if you can for now...
Side note: not everything is better when you install a new OS version.
If you can, you should still stay with CentOS 7 for your Docker servers.
There are some network changes which could impact depending on your setup.
For example I had issues connecting Docker containers in the same defined Docker network.
- Daniel
- Comments [2]
1Thomas Bahn 22.10.2020 15:55:42 Install Docker 19.03 on CentOS 8+
But you'd install a CentOS 7 package into your CentOS 8 system...
Again: Stay with CentOS 7 if you can for now...
2Daniel Nashed 22.10.2020 17:50:34 Install Docker 19.03 on CentOS 8+
@Thomas, CentOS 8 has other drawbacks like the Firewall changed completely ..
But some people really need to move to CentOS 8. And it also has some good new features.
Yes for Docker you should stay on CentOS 7 or use Podman.
Our open source image supports it. And HCL will also support it soon. It already works on current Podman versions.
RHEL 8 and CentOS 8 comes with Podman. And depending on what you select, you already get it installed out of the box.
And you have to be careful not to mix it. Our script for example detects podman and will use it automatically if you don't disable that.
But you get an info that podman is uses.
-- Daniel