Skip to content

Commit

Permalink
fix containerd param
Browse files Browse the repository at this point in the history
  • Loading branch information
outductor committed Dec 25, 2023
1 parent 67e1b08 commit 0dd7515
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ sudo apt-get update && sudo apt-get install -y containerd apt-transport-https cu
sudo mkdir -p /etc/containerd
sudo containerd config default | sudo tee /etc/containerd/config.toml > /dev/null
sudo sed -i 's#sandbox_image = "registry.k8s.io/pause:3.8"#sandbox_image = "registry.k8s.io/pause:3.9"#g' /etc/containerd/config.toml
if grep -q "systemd_cgroup = true" "/etc/containerd/config.toml"; then
if grep -q "SystemdCgroup = true" "/etc/containerd/config.toml"; then
echo "Config found, skip rewriting..."
else
sed -i -e "s/systemd_cgroup \= false/systemd_cgroup \= true/g" /etc/containerd/config.toml
sed -i 's/SystemdCgroup = false/SystemdCgroup = true/g' /etc/containerd/config.toml
fi

sudo systemctl restart containerd
Expand Down

0 comments on commit 0dd7515

Please sign in to comment.