From 9af6f9821d8907fcc123dfbff0907f5150d6dbce Mon Sep 17 00:00:00 2001 From: Akihiro Suda Date: Fri, 25 Mar 2022 17:30:42 +0900 Subject: [PATCH] nerdctl: update to v0.18.0; configure BuildKit with containerd worker BuildKit daemon is now configured to use containerd worker, not OCI worker https://github.com/containerd/nerdctl/blob/v0.18.0/docs/build.md#setting-up-buildkit-with-containerd-worker Signed-off-by: Akihiro Suda --- .../boot/40-install-containerd.sh | 19 +++++++++++++++++-- pkg/limayaml/defaults.go | 6 +++--- 2 files changed, 20 insertions(+), 5 deletions(-) diff --git a/pkg/cidata/cidata.TEMPLATE.d/boot/40-install-containerd.sh b/pkg/cidata/cidata.TEMPLATE.d/boot/40-install-containerd.sh index 9ad9f2e2160..aba50ffc793 100644 --- a/pkg/cidata/cidata.TEMPLATE.d/boot/40-install-containerd.sh +++ b/pkg/cidata/cidata.TEMPLATE.d/boot/40-install-containerd.sh @@ -33,14 +33,27 @@ fi rm -rf "${tmp_extract_nerdctl}" +: "${CONTAINERD_NAMESPACE:=default}" +# Overridable in .bashrc +: "${CONTAINERD_SNAPSHOTTER:=overlayfs}" + if [ "${LIMA_CIDATA_CONTAINERD_SYSTEM}" = 1 ]; then - mkdir -p /etc/containerd + mkdir -p /etc/containerd /etc/buildkit cat >"/etc/containerd/config.toml" <"/etc/buildkit/buildkitd.toml" <