File tree Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -109,18 +109,25 @@ write_files:
109
109
curl -fsSL https://github.com/containerd/nerdctl/releases/download/v${version}/nerdctl-full-${version}-linux-${goarch}.tar.gz | tar Cxz /usr/local
110
110
fi
111
111
{{- if .Containerd.System}}
112
- systemctl enable containerd
113
- systemctl start containerd
112
+ cat >"/etc/containerd/config.toml" <<EOF
113
+ version = 2
114
+ [proxy_plugins]
115
+ [proxy_plugins."stargz"]
116
+ type = "snapshot"
117
+ address = "/run/containerd-stargz-grpc/containerd-stargz-grpc.sock"
118
+ EOF
119
+ systemctl enable --now containerd buildkit stargz-snapshotter
114
120
{{- end}}
115
121
{{- if .Containerd.User}}
116
122
modprobe tap || true
117
123
if [ ! -e "/home/{{.User}}.linux/.config/containerd/config.toml" ]; then
118
124
mkdir -p "/home/{{.User}}.linux/.config/containerd"
119
125
cat >"/home/{{.User}}.linux/.config/containerd/config.toml" <<EOF
126
+ version = 2
120
127
[proxy_plugins]
121
128
[proxy_plugins."stargz"]
122
- type = "snapshot"
123
- address = "/run/user/{{.UID}}/containerd-stargz-grpc/containerd-stargz-grpc.sock"
129
+ type = "snapshot"
130
+ address = "/run/user/{{.UID}}/containerd-stargz-grpc/containerd-stargz-grpc.sock"
124
131
EOF
125
132
chown -R "{{.User}}" "/home/{{.User}}.linux/.config"
126
133
fi
Original file line number Diff line number Diff line change @@ -59,10 +59,10 @@ video:
59
59
display : " none"
60
60
61
61
containerd :
62
- # Enable system-wide containerd (systemctl enable containerd )
62
+ # Enable system-wide (aka rootful) containerd and its dependencies (BuildKit, Stargz Snapshotter )
63
63
# Default: false
64
64
system : false
65
- # Enable user-scoped containerd (systemctl --user enable containerd)
65
+ # Enable user-scoped (aka rootless) containerd and its dependencies
66
66
# Default: true
67
67
user : true
68
68
You can’t perform that action at this time.
0 commit comments