Skip to content

Commit

Permalink
Merge pull request #1622 from GiganticMinecraft/fix_containerd_param
Browse files Browse the repository at this point in the history
fix containerd param
  • Loading branch information
outductor authored Dec 25, 2023
2 parents 67e1b08 + 0dd7515 commit 2b32132
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 2b32132

Please sign in to comment.