File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -892,9 +892,17 @@ default-install-containerd() {
892892}
893893
894894default-config-containerd () {
895- if vm-command-q " [ -f /etc/containerd/config.toml ]" ; then
896- vm-sed-file /etc/containerd/config.toml ' s/^.*disabled_plugins *= *.*$/disabled_plugins = []/ '
895+ if vm-command-q " [ ! -f /etc/containerd/config.toml ]" ; then
896+ vm-command " mkdir -p /etc/containerd && containerd config default > /etc/containerd/config.toml "
897897 fi
898+
899+ vm-sed-file /etc/containerd/config.toml ' s/^.*disabled_plugins *= *.*$/disabled_plugins = []/'
900+
901+ if vm-command-q " containerd config dump | grep -v -q SystemdCgroup" ; then
902+ vm-command " containerd config dump > /etc/containerd/config.toml"
903+ fi
904+
905+ vm-sed-file /etc/containerd/config.toml ' s/SystemdCgroup = false/SystemdCgroup = true/g'
898906}
899907
900908default-restart-containerd () {
You can’t perform that action at this time.
0 commit comments