File tree 2 files changed +10
-0
lines changed
2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -235,6 +235,15 @@ disabled_plugins = ["io.containerd.internal.v1.restart"]
235
235
EOF
236
236
chmod 644 " ${config_path} "
237
237
238
+ cri_sandboxes=" ${CONTAINERD_ENABLE_CRI_SANDBOXES:- } "
239
+ containerd_env_path=" ${CONTAINERD_ENV_PATH:- " /etc/containerd/env" } "
240
+ touch " ${containerd_env_path} "
241
+ if [[ -n " ${cri_sandboxes} " ]]; then
242
+ cat > ${containerd_env_path} << EOF
243
+ ENABLE_CRI_SANDBOXES="${cri_sandboxes} "
244
+ EOF
245
+ fi
246
+
238
247
# containerd_extra_runtime_handler is the extra runtime handler to install.
239
248
containerd_extra_runtime_handler=${CONTAINERD_EXTRA_RUNTIME_HANDLER:- " " }
240
249
if [[ -n " ${containerd_extra_runtime_handler} " ]]; then
Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ write_files:
45
45
LimitNPROC=infinity
46
46
LimitCORE=infinity
47
47
TasksMax=infinity
48
+ EnvironmentFile=/etc/containerd/env
48
49
ExecStartPre=/sbin/modprobe overlay
49
50
ExecStart=/home/containerd/usr/local/bin/containerd
50
51
You can’t perform that action at this time.
0 commit comments