joergklein
(Joergklein)
February 20, 2022, 10:35am
1
I want to install Docker on CentOS 9 stream. But there is no Repo for CentOS 9
https://download.docker.com/linux/centos/
My questions are:
Why is CentOS 9 no longer supported?
How can I install Docker by hand for CentOS 9?
Thank you for the help.
rimelek
(Ákos Takács)
February 20, 2022, 9:12pm
2
My first guess was that Centos Stream is different than Centos, so it is harder to maintain docker-ce on the Stream version. Red Hat has their own software to manage containers, called podman and as far as I know, they set “docker” as an alias, so they want you to use their own software. I searched for similar issues, because I don’t know Centos Stream and found this:
opened 03:45PM - 13 Jan 22 UTC
community_new
**Tell us about your request**
A clear and concise description of what you want… to happen or the change you would like to see
I would like to be able to add support for `CentOS 9 Stream` at https://download.docker.com/linux/centos/ .
**Which service(s) is this request for?**
Let us know which product(s) you want this for?
`docker-ce`
**Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard?**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
When I try to install `docker-ce` on Centos 9 Stream, it reports 404, this is because there is no such version of `$releasever` as 9 in the corresponding repo.
I have tried commands like the right to specify the `repo` on CentOS 8 Stream, and I used the `--nobest` parameter of `yum` to keep the program running (yes, even on `Centos 9 Stream`, ` yum` keyword is still preserved), i.e. `sed -i 's/$releasever/8/g' /etc/yum.repos.d/docker-ce.repo`.
This was followed by a tentative `sudo yum install --nobest docker-ce docker-ce-cli containerd.io` step, which unfortunately failed (please ignore the Chinese, in fact I'm not sure of its English counterpart, So I didn't do the translation)
```
[root@localhost ~]# sudo yum install --nobest docker-ce docker-ce-cli containerd.io
上次元数据过期检查:0:02:06 前,执行于 2022年01月13日 星期四 21时14分11秒。
错误:
问题: 冲突的请求
- nothing provides libcgroup needed by docker-ce-3:19.03.13-3.el8.x86_64
- nothing provides libcgroup needed by docker-ce-3:19.03.14-3.el8.x86_64
- nothing provides libcgroup needed by docker-ce-3:19.03.15-3.el8.x86_64
- nothing provides libcgroup needed by docker-ce-3:20.10.0-3.el8.x86_64
- nothing provides libcgroup needed by docker-ce-3:20.10.1-3.el8.x86_64
- nothing provides libcgroup needed by docker-ce-3:20.10.10-3.el8.x86_64
- nothing provides libcgroup needed by docker-ce-3:20.10.11-3.el8.x86_64
- nothing provides libcgroup needed by docker-ce-3:20.10.12-3.el8.x86_64
- nothing provides libcgroup needed by docker-ce-3:20.10.2-3.el8.x86_64
- nothing provides libcgroup needed by docker-ce-3:20.10.3-3.el8.x86_64
- nothing provides libcgroup needed by docker-ce-3:20.10.4-3.el8.x86_64
- nothing provides libcgroup needed by docker-ce-3:20.10.5-3.el8.x86_64
- nothing provides libcgroup needed by docker-ce-3:20.10.6-3.el8.x86_64
- nothing provides libcgroup needed by docker-ce-3:20.10.7-3.el8.x86_64
- nothing provides libcgroup needed by docker-ce-3:20.10.8-3.el8.x86_64
- nothing provides libcgroup needed by docker-ce-3:20.10.9-3.el8.x86_64
(尝试添加 '--skip-broken' 来跳过无法安装的软件包)
```
I then tried `yum install libcgroup`, and the result was that `match` failed. Apparently the `libcgroup` package is an outdated component on RHEL and CentOS.
**Are you currently working around the issue?**
A clear and concise description of any alternative solutions or features you've considered or are using today.
Honestly I don't know how to fix it, it looks like Docker depends on `libcgroup`. I linked from another post. https://github.com/docker/docker.github.io/issues/13792
**Additional context**
Add any other context or screenshots about the feature request here.
It looks like Centos Stream doesn’t have the necessary dependencies for Docker.
leeiitb
(Thomas Stephen Lee)
February 24, 2022, 1:48am
3
You should wait for RHEL 9 to come out of Beta to GA.
After that, AlmaLinux 9 and Rocky Linux 9 also will be out.
These are easier to target than CentOS Stream 9.