Update setup-container.sh

I don't know how those fancy tabbed here documents work obviously and I don't know if the config.toml indentation is specific.  This retains the indentation.
Also writing to the file in /etc now.
This commit is contained in:
Patrick Torre 2022-08-25 10:34:07 -07:00 committed by GitHub
parent 14a9a8c88c
commit 16ede63e50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -72,7 +72,7 @@ then
# Configure containerd
sudo mkdir -p /etc/containerd
cat <<- EOF | sudo tee etc/containerd/config.toml
cat << EOF | sudo tee /etc/containerd/config.toml
version = 2
[plugins]
[plugins."io.containerd.grpc.v1.cri"]
@ -85,6 +85,7 @@ then
SystemdCgroup = true
EOF
# Restart containerd
sudo systemctl restart containerd
fi