Open legendyman opened 6 months ago
The libcgroup
library has been removed from EL9, so it needs a new RPM package for cri-dockerd.
Only libcgroup-0.41-21.el7.x86_64.rpm or libcgroup-0.41-19.el8.x86_64.rpm are available in CentOS
Not sure why this is copy/paste from docker-ce to cri-dockerd, but needs to be updated here too:
https://github.com/docker/docker-ce-packaging/commit/0b469b4cc53f642716a98639f20f463ced00a818 # Libcgroup is no longer available in RHEL/CentOS >= 9 distros.
Here is manually install instructions for search engine newbie like me. I put some breadcrumbs and let newbie to follow.
Tested in RHEL 9.4.
Redhat's yum repository doesn't have newer Golang above 1.22.0. (only have 1.21.13). So you also need to install Golang manually. 🥲
Browse to Golang official website. to download latest version of Golang (e.g. 1.23.2) https://go.dev/dl/
$ wget https://go.dev/dl/go1.23.2.linux-amd64.tar.gz
$ tar zxvf go1.23.2.linux-amd64.tar.gz
sudo mv go /usr/lib/golang
$ sudo ln -s /usr/lib/golang/bin/go /usr/bin/go
$ go version
go version go1.23.2 linux/amd64
$ yum install -y git make
$ git clone https://github.com/Mirantis/cri-dockerd.git
$ cd cri-dockerd && \
make cri-dockerd
Install it
cd cri-dockerd && \
mkdir -p /usr/local/bin && \
install -o root -g root -m 0755 cri-dockerd /usr/local/bin/cri-dockerd && \
install packaging/systemd/* /etc/systemd/system && \
sed -i -e 's,/usr/bin/cri-dockerd,/usr/local/bin/cri-dockerd,' /etc/systemd/system/cri-docker.service
$ sudo systemctl daemon-reload && \
sudo systemctl enable --now cri-docker
You may need to restart services after install if updates cri-docker.
sudo systemctl daemon-reload && \
sudo systemctl restart cri-docker
Check the cri-docker services.
$ systemctl status cri-docker
Verify cri-dockerd
version.
$ cri-dockerd --version
cri-dockerd 0.3.12-16-gebd9de06 (ebd9de06)
https://mirantis.github.io/cri-dockerd/usage/install-manually/
You might want to file another issue about improving "building from source", this issue was about the packages.
Expected Behavior
when I install cri-dockerd on centos 9, cause a error :
Actual Behavior
Steps to Reproduce the Problem
use command uname -a, found the version of kernel is 5.14.0-362.8.1.el9_3.x86_64 5、however, the version of cri-dockerd is 0.3.14-3.el8.x86_64 or 0.3.14-3.el7.x86_64
Specifications