- git clone cri-dockerd文件
yum install git -y
git clone https://github.com/Mirantis/cri-dockerd.git
# 文件会同步到 cri-dockerd 文件夹下
- 下载cri-dockerd
wget https://github.com/Mirantis/cri-dockerd/releases/download/v0.3.14/cri-dockerd-0.3.14.amd64.tgz
解压
tar xzvf cri-dockerd-0.3.14.amd64.tgz
# 文件会解压到 cri-dockerd 文件夹下
- 安装
cd cri-dockerd
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
systemctl daemon-reload
systemctl enable --now cri-docker.socket
systemctl start cri-docker
- 检查状态
systemctl status cri-docker