File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,9 @@ ARG CONTAINERD_VERSION=v1.4.3
1616ARG RUNC_VERSION=v1.0.0-rc92
1717ARG CNI_PLUGINS_VERSION=v0.9.0
1818
19+ # Legacy builder that doesn't support TARGETARCH should set this explicitly using --build-arg.
20+ # If TARGETARCH isn't supported by the builder, the default value is "amd64".
21+
1922FROM golang:1.13-buster AS golang-base
2023
2124# Build containerd
@@ -87,7 +90,7 @@ RUN apt-get update && apt-get install -y iptables && \
8790 # c.f. https://github.com/moby/moby/issues/26824
8891 update-alternatives --set iptables /usr/sbin/iptables-legacy && \
8992 mkdir -p /opt/cni/bin && \
90- curl -Ls https://github.com/containernetworking/plugins/releases/download/${CNI_PLUGINS_VERSION}/cni-plugins-linux-${TARGETARCH}-${CNI_PLUGINS_VERSION}.tgz | tar xzv -C /opt/cni/bin
93+ curl -Ls https://github.com/containernetworking/plugins/releases/download/${CNI_PLUGINS_VERSION}/cni-plugins-linux-${TARGETARCH:-amd64 }-${CNI_PLUGINS_VERSION}.tgz | tar xzv -C /opt/cni/bin
9194
9295# Image which can be used as containerized `ctr-remote images optimize` command
9396FROM ubuntu:20.04 AS oind
You can’t perform that action at this time.
0 commit comments