@@ -83,8 +83,6 @@ yum-config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce
8383 More info at: https://bugzilla.redhat.com/show_bug.cgi?id=1756473
8484*/}}
8585yum-config-manager --save --setopt=docker-ce-stable.module_hotfixes=true
86- yum install -y containerd.io-{{ .ContainerdVersion }} yum-plugin-versionlock
87- yum versionlock add containerd.io
8886
8987cat <<EOF | tee /etc/crictl.yaml
9088runtime-endpoint: unix:///run/containerd/containerd.sock
@@ -97,6 +95,9 @@ Restart=always
9795EnvironmentFile=-/etc/environment
9896EOF
9997
98+ yum install -y containerd.io-{{ .ContainerdVersion }} yum-plugin-versionlock
99+ yum versionlock add containerd.io
100+
100101systemctl daemon-reload
101102systemctl enable --now containerd
102103` ))
@@ -106,7 +107,6 @@ apt-get update
106107apt-get install -y apt-transport-https ca-certificates curl software-properties-common lsb-release
107108curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
108109add-apt-repository "deb https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
109- apt-get install -y containerd.io={{ .ContainerdVersion }}*
110110
111111cat <<EOF | tee /etc/crictl.yaml
112112runtime-endpoint: unix:///run/containerd/containerd.sock
@@ -119,6 +119,9 @@ Restart=always
119119EnvironmentFile=-/etc/environment
120120EOF
121121
122+ apt-get install -y containerd.io={{ .ContainerdVersion }}*
123+ apt-mark hold containerd.io
124+
122125systemctl daemon-reload
123126systemctl enable --now containerd
124127` ))
0 commit comments