docker (cli)
Published 2026-01-09 16:03:18 -08:00 by Mirror-Bot
Installation
docker pull onlyhavecans.works/oci/docker:clisha256:d6d7d49911a0c8f2c5b75eb82e41d16df8a1ce886386dfda2ca0a52c3573955fImage layers
| ADD alpine-minirootfs-3.23.2-x86_64.tar.gz / # buildkit |
| CMD ["/bin/sh"] |
| RUN /bin/sh -c apk add --no-cache ca-certificates openssh-client git # 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=29.1.4 |
| 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-29.1.4.tgz'; ;; 'armhf') url='https://download.docker.com/linux/static/stable/armel/docker-29.1.4.tgz'; ;; 'armv7') url='https://download.docker.com/linux/static/stable/armhf/docker-29.1.4.tgz'; ;; 'aarch64') url='https://download.docker.com/linux/static/stable/aarch64/docker-29.1.4.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.30.1 |
| RUN /bin/sh -c set -eux; apkArch="$(apk --print-arch)"; case "$apkArch" in 'x86_64') url='https://github.com/docker/buildx/releases/download/v0.30.1/buildx-v0.30.1.linux-amd64'; sha256='c37114fcd034025ec68e224657c8a5a850df472ded3ddcbca75ad3a7ebb9710d'; ;; 'armhf') url='https://github.com/docker/buildx/releases/download/v0.30.1/buildx-v0.30.1.linux-arm-v6'; sha256='348d17c7cc881e9268255d6f404669ae29789003575d1da9d97b51cd6ca7f0dd'; ;; 'armv7') url='https://github.com/docker/buildx/releases/download/v0.30.1/buildx-v0.30.1.linux-arm-v7'; sha256='32646cb57c43640a71c81f206897b78a8f1abe6b6db62bab115b5940fc5be884'; ;; 'aarch64') url='https://github.com/docker/buildx/releases/download/v0.30.1/buildx-v0.30.1.linux-arm64'; sha256='31d012d52d6df68aef4b55db62330967b562811f0de30cdfaa4505f314797c76'; ;; 'ppc64le') url='https://github.com/docker/buildx/releases/download/v0.30.1/buildx-v0.30.1.linux-ppc64le'; sha256='13523e8d1820019f404df31c7ec17c7a76c16f638dd04acc33f5d141f683247c'; ;; 'riscv64') url='https://github.com/docker/buildx/releases/download/v0.30.1/buildx-v0.30.1.linux-riscv64'; sha256='86af30811ceaad9fc34a6bc02e5d093d1460ec24f125c47e639ed1fac9effe83'; ;; 's390x') url='https://github.com/docker/buildx/releases/download/v0.30.1/buildx-v0.30.1.linux-s390x'; sha256='b752c6824bcc355b012d6f595987706fef15243792fe755f50de76c979bc592d'; ;; *) 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=5.0.1 |
| RUN /bin/sh -c set -eux; apkArch="$(apk --print-arch)"; case "$apkArch" in 'x86_64') url='https://github.com/docker/compose/releases/download/v5.0.1/docker-compose-linux-x86_64'; sha256='cdc1df64412ed009312afbc044b3625144d06c07736e2f7a77fb0460531b9327'; ;; 'armhf') url='https://github.com/docker/compose/releases/download/v5.0.1/docker-compose-linux-armv6'; sha256='b19c5b17edfc2202921beaf0e672b3851276f414544b66dce354e3d613d00458'; ;; 'armv7') url='https://github.com/docker/compose/releases/download/v5.0.1/docker-compose-linux-armv7'; sha256='f2262cc9e210bf6a01b054ffd96283996e3af66d5a117b70e1b573517c54f152'; ;; 'aarch64') url='https://github.com/docker/compose/releases/download/v5.0.1/docker-compose-linux-aarch64'; sha256='e3b36491a75f92c35ebfbbe6e4741bd2429664edf3971427983d67c0b21e7d1d'; ;; 'ppc64le') url='https://github.com/docker/compose/releases/download/v5.0.1/docker-compose-linux-ppc64le'; sha256='e3f9031f60a31f3c6adff7c78f2ab654d462aab711699de53345139e27e91973'; ;; 'riscv64') url='https://github.com/docker/compose/releases/download/v5.0.1/docker-compose-linux-riscv64'; sha256='50f31386a62b77e95068573ac86d6f1be70fb1196ea92ae57757aa1d6fa2aa8d'; ;; 's390x') url='https://github.com/docker/compose/releases/download/v5.0.1/docker-compose-linux-s390x'; sha256='7176f6a356ef0d764a9fe8f82873018e89e9f83008069c5252e0b3cf2beca634'; ;; *) 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"] |