Skip to content

Add Docker buildx tool to standard:7.0 #626

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 22, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions ubuntu/standard/7.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@ ARG DOCKER_BUCKET="download.docker.com"
ARG DOCKER_CHANNEL="stable"
ARG DIND_COMMIT="3b5fac462d21ca164b3778647420016315289034"
ARG DOCKER_COMPOSE_VERSION="2.17.2"
ARG DOCKER_BUILDX_VERSION="0.10.4"
ARG SRC_DIR="/usr/src"

ARG DOCKER_SHA256="ec8a71e79125d3ca76f7cc295f35eea225f4450e0ffe0775f103e2952ff580f6"
Expand All @@ -346,9 +347,14 @@ RUN set -ex \
&& echo 'dockremap:165536:65536' >> /etc/subgid \
&& wget -q "https://raw.githubusercontent.com/docker/docker/${DIND_COMMIT}/hack/dind" -O /usr/local/bin/dind \
&& curl -L https://github.com/docker/compose/releases/download/v${DOCKER_COMPOSE_VERSION}/docker-compose-Linux-x86_64 > /usr/local/bin/docker-compose \
&& chmod +x /usr/local/bin/dind /usr/local/bin/docker-compose \
# Add docker buildx tool
&& mkdir -p /usr/local/lib/docker/cli-plugins \
&& curl -L https://github.com/docker/buildx/releases/download/v${DOCKER_BUILDX_VERSION}/buildx-v${DOCKER_BUILDX_VERSION}.linux-amd64 > /usr/local/lib/docker/cli-plugins/docker-buildx \
&& chmod +x /usr/local/bin/dind /usr/local/bin/docker-compose /usr/local/lib/docker/cli-plugins/docker-buildx \
# Ensure docker-compose works
&& docker-compose version
&& docker-compose version \
# Ensure docker-buildx works
&& /usr/local/lib/docker/cli-plugins/docker-buildx version

VOLUME /var/lib/docker
#*********************** END DOCKER ****************************
Expand Down