This repository was archived by the owner on Jul 28, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,12 @@ ENV CNI_VERSION=v0.7.1
4444ENV CNI_ARCHIVE=cni-plugins-"${ARCH}" -"${CNI_VERSION}" .tgz
4545ENV CNI_SHA1=fb29e20401d3e9598a1d8e8d7992970a36de5e05
4646
47+ # Specify CONTAINERD_VERSION if containerd which ships with Docker needs to be
48+ # replaced. Note that containerd version must be specified w/o "v" prefix,
49+ # e.g. v1.2.1
50+ ENV CONTAINERD_VERSION=1.2.1
51+ ENV CONTAINERD_SHA256=9818e3af4f9aac8d55fc3f66114346db1d1acd48d45f88b2cefd3d3bafb380e0
52+
4753# make systemd behave correctly in Docker container
4854# (e.g. accept systemd.setenv args, etc.)
4955ENV container docker
@@ -93,7 +99,13 @@ RUN clean-install docker-ce=5:18.09.0~3-0~debian-stretch && \
9399RUN curl -sSL --retry 5 https://github.com/kubernetes-sigs/cri-tools/releases/download/${CRICTL_VERSION}/crictl-${CRICTL_VERSION}-linux-amd64.tar.gz >/tmp/crictl.tar.gz && \
94100 echo "${CRICTL_SHA256} /tmp/crictl.tar.gz" | sha256sum -c && \
95101 tar -C /usr/local/bin -xvzf /tmp/crictl.tar.gz && \
96- rm -f /tmp/crictl.tar.gz
102+ rm -f /tmp/crictl.tar.gz && \
103+ if [ ${CONTAINERD_VERSION} ]; then \
104+ curl -sSL --retry 5 https://github.com/containerd/containerd/releases/download/v${CONTAINERD_VERSION}/containerd-${CONTAINERD_VERSION}.linux-amd64.tar.gz >/tmp/containerd.tar.gz && \
105+ echo "${CONTAINERD_SHA256} /tmp/containerd.tar.gz" | sha256sum -c && \
106+ tar -C /usr -xvzf /tmp/containerd.tar.gz && \
107+ rm -f /tmp/containerd.tar.gz; \
108+ fi
97109
98110RUN mkdir -p /hypokube /etc/systemd/system/docker.service.d /var/lib/kubelet
99111
You can’t perform that action at this time.
0 commit comments