Questions tagged [buildx]

Docker Buildx is a CLI plugin that extends the docker command with the full support of the features provided by Moby BuildKit builder toolkit. It provides the same user experience as docker build with many new features like creating scoped builder instances and building against multiple nodes concurrently.

140 questions
1
vote
0 answers

How Docker RUN mount=type=cache works?

Aside from the ADD and COPY commands, cache checking does not look at the files in the container to determine a cache match. For example, when processing a RUN apt-get -y update command the files updated in the container are not examined to…
Nova
  • 364
  • 1
  • 15
1
vote
1 answer

Docker buildx is not caching bundle install line but runs it each time

I'm using buildx because I'm doing my development on an macbook and my company's server runs on an intel platform. If there's some way to build docker images for my company's server other than using buildx, I'm open to it. Anyway, every time I…
1
vote
0 answers

Azure DevOps share buildx builder between jobs

We are currently trying to support multiarch images for different services that get built in explicit jobs. We have a setup job that creates the buildx builder and then a job for each service that builds the multiarch images. Now currently our…
toni
  • 133
  • 1
  • 13
1
vote
1 answer

Create a single image with buildx for running in AWS lambda

Currently We are running a deployment script which builds an image with the usual 'docker build ...' command, pushes this image up to AWS ECR and updates the lambda function to use the new image. Now we want to use buildx to build our images.…
1
vote
0 answers

Docker compose build with remote docker host and buildkit

So I have dug into gitlab-ci and I have an app that needs to connect to a Strapi instance during build time. I have found out that due to several things this is really hard. I will put links to different topics regarding this: Specify network to use…
Taavi Ansper
  • 143
  • 9
1
vote
0 answers

Docker proxy timeouts with docker buildx build

I'm trying to build amd64 images on a M1 Mac. After a reboot, the build command below works for about day and starts giving errors like the one below. The Dockerfile starts with FROM python:3.10.10-slim as build and running docker buildx build …
eaubin
  • 658
  • 9
  • 14
1
vote
1 answer

Questions about multi-arch docker image as base image in Dockerfile of project

I would like to use openjdk:15-alpine image as the base image for the Dockerfile of my java project (because it is lightweighted). But it only supports amd64 CPU architecture while I am using Macbook M2 chip which is armv64 architecture. Here is the…
user842225
  • 5,445
  • 15
  • 69
  • 119
1
vote
2 answers

How to install buildx with docker 23.0.1

I am trying to install buildx from docker doc. At first, I tried Install using a Dckerfile. I have to say, I have no clue how to install it with this steps, the instructions is very poor for this section. So I pick option Download manually. I…
dorinand
  • 1,397
  • 1
  • 24
  • 49
1
vote
0 answers

Loading or Pushing Multiplatform OCI Image Tarball

I have a tarball image which is built with docker buildx build for platforms linux/amd64 and linux/arm64 with argument --output=type=oci,dest=/some/path. I am not able to go back and rebuild image with --load or --push. My first question is, how…
tuna
  • 136
  • 7
1
vote
1 answer

Docker / Buildx Use Multiple Architectures in Different Stages of Multi-Stage Dockerfile

So I have issues building my docker container for arm/v6 because a tool I use for dependency management (Poetry to be specific) depends on some python wheels that do not exist / are not prebuilt on arm/v6. I only use this tool in one stage to…
1
vote
0 answers

docker buildx takes longer time to build multi arch images - ARM64 and AMD64 than single arch

using docker buildx build --platform linux/arm64,linux/amd64 takes 5 times longer than docker build . I'm running the command using jenkins pipeline on a amd64 slave. Is there any way to build the image faster?
EilonA
  • 361
  • 5
  • 17
1
vote
1 answer

Dockerfile cross platform TARGETARCH build not working

This is my Dockerfile: FROM tomcat:9 RUN apt-get update RUN apt-get install -y iputils-ping file ARG TARGETARCH RUN if ["$TARGETARCH" = "amd64"]; then \ apt-get install -y libc6-i386 ; \ fi WORKDIR /usr/local/tomcat ... // skipped The…
smallufo
  • 11,516
  • 20
  • 73
  • 111
1
vote
0 answers

Share gha Docker cache among branches?

Is it possible for multiple branches in a github repo to share entries in the gha cache? I have a CI workflow in a github repo. This workflow builds a Docker image and pushes it to the gha cache using build-push-action. When I push commits to an…
1
vote
1 answer

How to run Erlang in arm64 Docker image on x86_64 host

How can my docker containers run Erlang commands with the linux/arm64/v8 platform on my x86_64/amd64 host? I am trying to build a multi-platform Docker image following the official documentation. My build is failing when running build steps with…
1
vote
0 answers

Docker buildx (BuildKit) ignores docker images loaded into the local registry

Does anybody know a way to use an image loaded into the local registry as a base image in a Dockerfile with BuildKit? E.g. I have the following image loaded locally by: $ docker buildx build --platform linux/amd64 -t gstreamer-amd64:1.20.3-1 --load…
Broothy
  • 659
  • 5
  • 20