【containerd】(202407) 02.清理container文件和配置

清理containerd文件和配置

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# 停止containerd进程
systemctl stop containerd --now

# 删除containerd安装包下发的各种二进制和配置
rm -r -f /cri-containerd.DEPRECATED.txt
rm -r -f /etc/systemd/system/containerd.service
rm -r -f /etc/cni/net.d/10-containerd-net.conflist
rm -r -f /etc/crictl.yaml
rm -r -f /usr/local/sbin/runc
rm -r -f /usr/local/bin/containerd-shim
rm -r -f /usr/local/bin/crictl
rm -r -f /usr/local/bin/containerd-stress
rm -r -f /usr/local/bin/critest
rm -r -f /usr/local/bin/ctr
rm -r -f /usr/local/bin/ctd-decoder
rm -r -f /usr/local/bin/containerd-shim-runc-v2
rm -r -f /usr/local/bin/containerd-shim-runc-v1
rm -r -f /usr/local/bin/containerd
rm -r -f /opt/cni/bin/
rm -r -f /opt/cni/bin/tuning
rm -r -f /opt/cni/bin/firewall
rm -r -f /opt/cni/bin/loopback
rm -r -f /opt/cni/bin/macvlan
rm -r -f /opt/cni/bin/ptp
rm -r -f /opt/cni/bin/bridge
rm -r -f /opt/cni/bin/static
rm -r -f /opt/cni/bin/dhcp
rm -r -f /opt/cni/bin/dummy
rm -r -f /opt/cni/bin/sbr
rm -r -f /opt/cni/bin/vrf
rm -r -f /opt/cni/bin/host-local
rm -r -f /opt/cni/bin/bandwidth
rm -r -f /opt/cni/bin/vlan
rm -r -f /opt/cni/bin/host-device
rm -r -f /opt/cni/bin/portmap
rm -r -f /opt/cni/bin/ipvlan
rm -r -f /opt/containerd/cluster/version
rm -r -f /opt/containerd/cluster/gce/configure.sh
rm -r -f /opt/containerd/cluster/gce/env
rm -r -f /opt/containerd/cluster/gce/cloud-init/master.yaml
rm -r -f /opt/containerd/cluster/gce/cloud-init/node.yaml
rm -r -f /opt/containerd/cluster/gce/cni.template

# 删除containerd启动时的配置文件
rm -r -f /etc/containerd/config.toml



【containerd】(202407) 02.清理container文件和配置
http://example.com/2024/07/09/containerd/【containerd】(202407) 02.清理container文件和配置/
作者
ningan123
发布于
2024年7月9日
许可协议