Skip to content

Latest commit

 

History

History
46 lines (34 loc) · 991 Bytes

containerd-ctl.md

File metadata and controls

46 lines (34 loc) · 991 Bytes
title weight catalog date subtitle header-img tags catagories
Containerd命令工具
2
true
2022-06-23 09:22:24 -0700
Containerd
Containerd

crictl

#!/bin/bash
CrictlVersion=$1
CrictlVersion=${CrictlVersion:-1.24.2}

echo "--------------install crictl--------------"
wget https://github.com/kubernetes-sigs/cri-tools/releases/download/v${CrictlVersion}/crictl-v${CrictlVersion}-linux-amd64.tar.gz
tar Cxzvf /usr/local/bin nerdctl-${NerdctlVersion}-linux-amd64.tar.gz

设置配置文件

cat > /etc/crictl.yaml << \EOF
runtime-endpoint: unix:///run/containerd/containerd.sock
image-endpoint: unix:///run/containerd/containerd.sock
timeout: 2
debug: false
pull-image-on-create: false
EOF

参考: