File tree Expand file tree Collapse file tree 2 files changed +20
-5
lines changed
cidata/cidata.TEMPLATE.d/boot Expand file tree Collapse file tree 2 files changed +20
-5
lines changed Original file line number Diff line number Diff line change 33
33
34
34
rm -rf " ${tmp_extract_nerdctl} "
35
35
36
+ : " ${CONTAINERD_NAMESPACE:= default} "
37
+ # Overridable in .bashrc
38
+ : " ${CONTAINERD_SNAPSHOTTER:= overlayfs} "
39
+
36
40
if [ " ${LIMA_CIDATA_CONTAINERD_SYSTEM} " = 1 ]; then
37
- mkdir -p /etc/containerd
41
+ mkdir -p /etc/containerd /etc/buildkit
38
42
cat > " /etc/containerd/config.toml" << EOF
39
43
version = 2
40
44
[proxy_plugins]
41
45
[proxy_plugins."stargz"]
42
46
type = "snapshot"
43
47
address = "/run/containerd-stargz-grpc/containerd-stargz-grpc.sock"
48
+ EOF
49
+ cat > " /etc/buildkit/buildkitd.toml" << EOF
50
+ [worker.oci]
51
+ enabled = false
52
+
53
+ [worker.containerd]
54
+ enabled = true
55
+ namespace = "${CONTAINERD_NAMESPACE} "
56
+ snapshotter = "${CONTAINERD_SNAPSHOTTER} "
44
57
EOF
45
58
systemctl enable --now containerd buildkit stargz-snapshotter
46
59
fi
72
85
fi
73
86
sudo -iu " ${LIMA_CIDATA_USER} " " XDG_RUNTIME_DIR=/run/user/${LIMA_CIDATA_UID} " systemctl --user enable --now dbus
74
87
sudo -iu " ${LIMA_CIDATA_USER} " " XDG_RUNTIME_DIR=/run/user/${LIMA_CIDATA_UID} " " PATH=${PATH} " containerd-rootless-setuptool.sh install
75
- sudo -iu " ${LIMA_CIDATA_USER} " " XDG_RUNTIME_DIR=/run/user/${LIMA_CIDATA_UID} " " PATH=${PATH} " containerd-rootless-setuptool.sh install-buildkit
88
+ sudo -iu " ${LIMA_CIDATA_USER} " " XDG_RUNTIME_DIR=/run/user/${LIMA_CIDATA_UID} " " PATH=${PATH} " \
89
+ " CONTAINERD_NAMESPACE=${CONTAINERD_NAMESPACE} " " CONTAINERD_SNAPSHOTTER=${CONTAINERD_SNAPSHOTTER} " \
90
+ containerd-rootless-setuptool.sh install-buildkit-containerd
76
91
77
92
# $CONTAINERD_SNAPSHOTTER is configured in 20-rootless-base.sh, when the guest kernel is < 5.13, or the instance was created with Lima < 0.9.0.
78
93
if [ " $( sudo -iu " ${LIMA_CIDATA_USER} " sh -ec ' echo $CONTAINERD_SNAPSHOTTER' ) " = " fuse-overlayfs" ]; then
Original file line number Diff line number Diff line change @@ -22,20 +22,20 @@ import (
22
22
)
23
23
24
24
func defaultContainerdArchives () []File {
25
- const nerdctlVersion = "0.17.1 "
25
+ const nerdctlVersion = "0.18.0 "
26
26
location := func (goarch string ) string {
27
27
return "https://github.com/containerd/nerdctl/releases/download/v" + nerdctlVersion + "/nerdctl-full-" + nerdctlVersion + "-linux-" + goarch + ".tar.gz"
28
28
}
29
29
return []File {
30
30
{
31
31
Location : location ("amd64" ),
32
32
Arch : X8664 ,
33
- Digest : "sha256:046ac1c3d007b9b64880cb15a78ea1e0be345d31f51ff282be783a9c203f299d " ,
33
+ Digest : "sha256:62573b9e3bca6794502ad04ae77a2b12ec80aeaa21e8b9bbc5562f3e6348eb66 " ,
34
34
},
35
35
{
36
36
Location : location ("arm64" ),
37
37
Arch : AARCH64 ,
38
- Digest : "sha256:b773a0db178af9d0963b7c84df88ee434e0c1986fe7491dc1de3231e071e3921 " ,
38
+ Digest : "sha256:6e3ca13479f0128e0ea3813bfba6a7ecc04707840f49ee248a64bfb2126bab4c " ,
39
39
},
40
40
}
41
41
}
You can’t perform that action at this time.
0 commit comments