File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -95,14 +95,17 @@ write_files:
95
95
EOF
96
96
chown -R "{{.User}}" "/home/{{.User}}.linux/.config"
97
97
fi
98
- if [ ! -x /usr/local/bin/nerdctl -a "$(uname -m)" = "x86_64" ]; then
99
- curl -fsSL https://github.com/containerd/nerdctl/releases/download/v0.8.1/nerdctl-full-0.8.1-linux-amd64.tar.gz | tar Cxz /usr/local
98
+ if [ ! -x /usr/local/bin/nerdctl ]; then
99
+ version="0.8.2"
100
+ goarch="amd64"
101
+ if [ "$(uname -m )" = "aarch64 "]; then
102
+ goarch="arm64"
103
+ fi
104
+ curl -fsSL https://github.com/containerd/nerdctl/releases/download/v${version}/nerdctl-full-${version}-linux-${goarch}.tar.gz | tar Cxz /usr/local
100
105
until [ -e "/run/user/{{.UID}}/systemd/private" ]; do sleep 3; done
101
106
sudo -iu "{{.User}}" "XDG_RUNTIME_DIR=/run/user/{{.UID}}" containerd-rootless-setuptool.sh install
102
107
sudo -iu "{{.User}}" "XDG_RUNTIME_DIR=/run/user/{{.UID}}" containerd-rootless-setuptool.sh install-buildkit
103
108
sudo -iu "{{.User}}" "XDG_RUNTIME_DIR=/run/user/{{.UID}}" containerd-rootless-setuptool.sh install-stargz
104
- else
105
- echo "TODO: install containerd for aarch64 (https://github.com/containerd/nerdctl/issues/191)"
106
109
fi
107
110
owner: root:root
108
111
path: /var/lib/cloud/scripts/per-boot/20-install-containerd.boot.sh
You can’t perform that action at this time.
0 commit comments