ADD file:37a76ec18f9887751cd8473744917d08b7431fc4085097bb6a09d81b41775473 in / |
CMD ["/bin/sh"] |
RUN /bin/sh -c apk add --no-cache ca-certificates openssh-client # buildkit |
RUN /bin/sh -c [ -e /etc/nsswitch.conf ] && grep '^hosts: files dns' /etc/nsswitch.conf # buildkit |
RUN /bin/sh -c set -eux; addgroup -g 2375 -S docker # buildkit |
ENV DOCKER_VERSION=26.1.1 |
RUN /bin/sh -c set -eux; apkArch="$(apk --print-arch)"; case "$apkArch" in 'x86_64') url='https://download.docker.com/linux/static/stable/x86_64/docker-26.1.1.tgz'; ;; 'armhf') url='https://download.docker.com/linux/static/stable/armel/docker-26.1.1.tgz'; ;; 'armv7') url='https://download.docker.com/linux/static/stable/armhf/docker-26.1.1.tgz'; ;; 'aarch64') url='https://download.docker.com/linux/static/stable/aarch64/docker-26.1.1.tgz'; ;; *) echo >&2 "error: unsupported 'docker.tgz' architecture ($apkArch)"; exit 1 ;; esac; wget -O 'docker.tgz' "$url"; tar --extract --file docker.tgz --strip-components 1 --directory /usr/local/bin/ --no-same-owner 'docker/docker' ; rm docker.tgz; docker --version # buildkit |
ENV DOCKER_BUILDX_VERSION=0.14.0 |
RUN /bin/sh -c set -eux; apkArch="$(apk --print-arch)"; case "$apkArch" in 'x86_64') url='https://github.com/docker/buildx/releases/download/v0.14.0/buildx-v0.14.0.linux-amd64'; sha256='32f8f17eca35bf2efe6c0e47f40e4692a876f34531b421efc984799a5b41226e'; ;; 'armhf') url='https://github.com/docker/buildx/releases/download/v0.14.0/buildx-v0.14.0.linux-arm-v6'; sha256='7a23989eb26ad27e1b7c11a38dda6a8e6a94562969c19165cf8f49e70203ad20'; ;; 'armv7') url='https://github.com/docker/buildx/releases/download/v0.14.0/buildx-v0.14.0.linux-arm-v7'; sha256='53b2d827510c6cff41503454caeb0d6613d5ed11201ba10f5ad6c22466cc178c'; ;; 'aarch64') url='https://github.com/docker/buildx/releases/download/v0.14.0/buildx-v0.14.0.linux-arm64'; sha256='38bf0ea9c48743edb8243f14272be65a2bad7092228068337aea584309ea664c'; ;; 'ppc64le') url='https://github.com/docker/buildx/releases/download/v0.14.0/buildx-v0.14.0.linux-ppc64le'; sha256='847e665e8f1fef3b85c6a5139d9bc57a81bae84d6a882d3ed71e2b5e2bd94bf6'; ;; 'riscv64') url='https://github.com/docker/buildx/releases/download/v0.14.0/buildx-v0.14.0.linux-riscv64'; sha256='c853c01f71b6b778b430d985813069d1ca4f2b2e7e039723298350839a556d2b'; ;; 's390x') url='https://github.com/docker/buildx/releases/download/v0.14.0/buildx-v0.14.0.linux-s390x'; sha256='6ed2520cf5b7b4b1a985622c61b62d8f65634634b0ef8b3d0594dc1550032d9d'; ;; *) echo >&2 "warning: unsupported 'docker-buildx' architecture ($apkArch); skipping"; exit 0 ;; esac; wget -O 'docker-buildx' "$url"; echo "$sha256 *"'docker-buildx' | sha256sum -c -; plugin='/usr/local/libexec/docker/cli-plugins/docker-buildx'; mkdir -p "$(dirname "$plugin")"; mv -vT 'docker-buildx' "$plugin"; chmod +x "$plugin"; docker buildx version # buildkit |
ENV DOCKER_COMPOSE_VERSION=2.27.0 |
RUN /bin/sh -c set -eux; apkArch="$(apk --print-arch)"; case "$apkArch" in 'x86_64') url='https://github.com/docker/compose/releases/download/v2.27.0/docker-compose-linux-x86_64'; sha256='f3ba3bf1e4ab18e96c2d36526a075a02a78fb5f8e80d3e3ca9c5bf256d81d0a0'; ;; 'armhf') url='https://github.com/docker/compose/releases/download/v2.27.0/docker-compose-linux-armv6'; sha256='ee467093d138f9c4d189b774552ef86ba253107bd91226b28f0c54edf62fe949'; ;; 'armv7') url='https://github.com/docker/compose/releases/download/v2.27.0/docker-compose-linux-armv7'; sha256='8461b4d4a58eaaf04c4f482f0dabe57db9ef63229311a9583c6548b417f33c76'; ;; 'aarch64') url='https://github.com/docker/compose/releases/download/v2.27.0/docker-compose-linux-aarch64'; sha256='37a1c197fef5fda2a3df2d5ae0d7762ad2a00e30946ad06d4ad9fa8cef16d9e7'; ;; 'ppc64le') url='https://github.com/docker/compose/releases/download/v2.27.0/docker-compose-linux-ppc64le'; sha256='faed2dd8f0568922dadf1a8fa155898d5be1feaa67568f2aa730a594ba6a44ec'; ;; 'riscv64') url='https://github.com/docker/compose/releases/download/v2.27.0/docker-compose-linux-riscv64'; sha256='71a09bd1980505a5f194cfab5df53bba55e493edf246f3ebb28cbfef8caf7715'; ;; 's390x') url='https://github.com/docker/compose/releases/download/v2.27.0/docker-compose-linux-s390x'; sha256='d38522261b481d7f20da7f80af67824afe2a1b54dd19215690febb0c49ad932d'; ;; *) echo >&2 "warning: unsupported 'docker-compose' architecture ($apkArch); skipping"; exit 0 ;; esac; wget -O 'docker-compose' "$url"; echo "$sha256 *"'docker-compose' | sha256sum -c -; plugin='/usr/local/libexec/docker/cli-plugins/docker-compose'; mkdir -p "$(dirname "$plugin")"; mv -vT 'docker-compose' "$plugin"; chmod +x "$plugin"; ln -sv "$plugin" /usr/local/bin/; docker-compose --version; docker compose version # buildkit |
COPY modprobe.sh /usr/local/bin/modprobe # buildkit |
COPY docker-entrypoint.sh /usr/local/bin/ # buildkit |
ENV DOCKER_TLS_CERTDIR=/certs |
RUN /bin/sh -c mkdir /certs /certs/client && chmod 1777 /certs /certs/client # buildkit |
ENTRYPOINT ["docker-entrypoint.sh"] |
CMD ["sh"] |
RUN /bin/sh -c set -eux; apk add --no-cache btrfs-progs e2fsprogs e2fsprogs-extra git ip6tables iptables openssl pigz shadow-uidmap xfsprogs xz zfs ; # buildkit |
RUN /bin/sh -c set -eux; apk add --no-cache iptables-legacy; mkdir -p /usr/local/sbin/.iptables-legacy; for f in iptables iptables-save iptables-restore ip6tables ip6tables-save ip6tables-restore ; do b="/sbin/${f/tables/tables-legacy}"; "$b" --version; ln -svT "$b" "/usr/local/sbin/.iptables-legacy/$f"; done; export PATH="/usr/local/sbin/.iptables-legacy:$PATH"; iptables --version | grep legacy # buildkit |
RUN /bin/sh -c set -eux; addgroup -S dockremap; adduser -S -G dockremap dockremap; echo 'dockremap:165536:65536' >> /etc/subuid; echo 'dockremap:165536:65536' >> /etc/subgid # buildkit |
RUN /bin/sh -c set -eux; apkArch="$(apk --print-arch)"; case "$apkArch" in 'x86_64') url='https://download.docker.com/linux/static/stable/x86_64/docker-26.1.1.tgz'; ;; 'armhf') url='https://download.docker.com/linux/static/stable/armel/docker-26.1.1.tgz'; ;; 'armv7') url='https://download.docker.com/linux/static/stable/armhf/docker-26.1.1.tgz'; ;; 'aarch64') url='https://download.docker.com/linux/static/stable/aarch64/docker-26.1.1.tgz'; ;; *) echo >&2 "error: unsupported 'docker.tgz' architecture ($apkArch)"; exit 1 ;; esac; wget -O 'docker.tgz' "$url"; tar --extract --file docker.tgz --strip-components 1 --directory /usr/local/bin/ --no-same-owner --exclude 'docker/docker' ; rm docker.tgz; dockerd --version; containerd --version; ctr --version; runc --version # buildkit |
ENV DIND_COMMIT=65cfcc28ab37cb75e1560e4b4738719c07c6618e |
RUN /bin/sh -c set -eux; wget -O /usr/local/bin/dind "https://raw.githubusercontent.com/docker/docker/${DIND_COMMIT}/hack/dind"; chmod +x /usr/local/bin/dind # buildkit |
COPY dockerd-entrypoint.sh /usr/local/bin/ # buildkit |
VOLUME [/var/lib/docker] |
EXPOSE map[2375/tcp:{} 2376/tcp:{}] |
ENTRYPOINT ["dockerd-entrypoint.sh"] |
CMD [] |
MAINTAINER Adrien Waksberg "docker@waks.be" |
/bin/sh -c apk update && apk add --upgrade --no-cache rsync python3 python3-dev py3-pip gcc git curl build-base gettext autoconf automake py3-cryptography linux-headers musl-dev libffi-dev openssl-dev openssh nodejs |
/bin/sh -c python3 -m pip install --break-system-packages ansible ansible-lint docker molecule molecule-plugins[docker] pytest-testinfra yamllint |