cri-dockerd
cri-dockerd copied to clipboard
packaging deb for noble numbat Ubuntu 24.04 LTS
Expected Behavior
ability to install cri-dockerd on 24.04
Actual Behavior
missing deb
Specifications
- Version:
- Platform: Ubuntu 24.04
- Subsystem:
You should be able to use the version for Ubuntu 22.04, as a temporary workaround.
- https://github.com/Mirantis/cri-dockerd/discussions/339
We previously discussed removing the different deb versions because we thought they were the same.
Is something not working with the 22.04 version to make a 24.04 specific version needed?
I think the old binary was statically linked, so it worked everywhere. Now it needs "new enough" glibc
But the older cri binary should work on the newer OS as well, even if the opposite might not be true...
I see. So this is more of an issue that switching the release process to be in CI instead of building on a dev machine missed something?
Not sure? The kubernetes binaries are never built, just repackaged, so it is the same static binary in all formats.
But it seems like with the new CI build of cri-dockerd, it is actually using the OS to build the (dynamic) binaries ?
Here is manually install instructions for search engine newbie like me.
Tested on Ubuntu 24.04 (noble).
Instructions
- Install proper packages.
$ sudo apt install -y make golang git
- Git clone latest version
$ git clone https://github.com/Mirantis/cri-dockerd.git
- Compile it
$ 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
- Reload the daemon and enable services
$ 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
- How to verify?
Check the cri-docker services
$ systemctl status cri-docker
Verify cri-dockerd version
$ cri-dockerd --version
cri-dockerd 0.3.12-16-gebd9de06 (ebd9de06)
Reference
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.