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.
Questions tagged [buildx]
140 questions
2
votes
0 answers
Docker buildx failing to find local docker image
I've got two Docker images that I need to cross-compile: libs and devicemanager, where the devicemanager image depends on the libs image. The libs Docker image builds fine using
$ docker buildx build --platform linux/arm/v7 --rm --file ./Dockerfile…

vmishel
- 145
- 8
2
votes
1 answer
Standard docker push works but not buildx(docker-container) - ERROR exporting to image
I am trying to buildx push to local registry. I have docker login success.
I am building on macos. And it looks like it has something to do with docker-container.
standart docker works:
docker build -t /demo
docker push…

Chris G.
- 23,930
- 48
- 177
- 302
2
votes
1 answer
Docker build failing with no such file or directory
I'm trying to build a docker image using Github actions and Docker build can't find the docker file.
When I run this
- name: Build the Docker image
run: docker build . --file Dockerfile --build-arg NPM_TOKEN=${{ secrets.TOKEN }} --tag…

Junius L
- 15,881
- 6
- 52
- 96
2
votes
1 answer
Quarkus Native Application with DioZero on Raspberry Pi using Docker containers (multi-arch)
Yoooo!
Scope
I am trying to deploy a Quarkus based application to a Raspberry Pi using some fancy technologies, my goal is to figure out an easy way to develop an application with Quarkus framework, subsequently deploy as native executable to a…

NanoBreaker
- 67
- 12
2
votes
0 answers
Docker buildx is not using cache when building image from arm platform
I am building arm64 image on my x86_64 amd machine using docker buildx everything is working fine except whenever I try to build arm image it start building it from scratch.
Steps to reproduce
Create a docker builder
export…

Pranjal Doshi
- 862
- 11
- 29
2
votes
2 answers
Docker buildx stitch a manifest list from images build independently for different architectures
I am trying to build a multi-arch image using docker. I am using github actions for the CI. The build using buildx+qemu is fairly slow. So I am trying to build individual images on hosts with the target architecture and then stitch the created…

Puneet
- 69
- 8
2
votes
1 answer
How are Docker buildx layer cache hashes calculated?
I'm digging into the caching of Docker buildx to try to debug an issue. I'm trying to figure out how, exactly, buildx checks if a layer is available in the local cache. Although I've searched fairly extensively, I can't seem to find any…

Jordan
- 3,998
- 9
- 45
- 81
2
votes
0 answers
gcr.io registry, docker buildx multi-plaftorm --push 401: authorization failed
I'm facing an unauthorized issue when using docker buildx build --platform linux/amd64 -f Dockerfile -t gcr.io//:1.0.0 --push . when pushing to gcr.io/. I listed one platform here, but the problem is the same with multiple…

Matt
- 10,633
- 3
- 46
- 49
2
votes
0 answers
Can docker buildx build utilize a docker swarm for multi-platform building?
Just got done compiling a buildx multi-arch docker container that includes amd64, arm64 and armv7. It took about two hours to build -- with the armv7 portion being particularly slow. It only takes about 15 minutes to build natively on a…

bnhf
- 41
- 4
2
votes
0 answers
Dockerfile: Failed to compute cache key: "/tsconfig.json": not found
I'm currently trying to set up GitHub actions, to automatically build and push a backend to DockerHub. However, if the workflow build-and-deploy-backend is triggered
it starts creating the Docker Image but fails at the line 23 in the…

BennoDev
- 1,067
- 1
- 6
- 17
2
votes
1 answer
Docker Buildkit --mount=type=cache for Caching Nuget Packages for .NET 6
I wrote a Dockerfile that uses the Docker buildx --mount=type=cache setting to cache my NuGet packages for faster builds. This seemed to work in .NET 5 as indicated by this other question.
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS sdk
WORKDIR…

Muhammad Rehan Saeed
- 35,627
- 39
- 202
- 311
2
votes
1 answer
Docker buildx hangs when building image for arm64 using multi-stage Java build
I'm trying to build an arm64 Docker image for a Spring Boot app which uses multi-stage build. buildx or rather qemu hangs on unpacking step using jar -xf ../*.jar. One of the CPU cores uses 100% and the process runs infinitely. At the same time…

Peter
- 1,512
- 1
- 22
- 40
2
votes
1 answer
can you combine separate builds from docker?
I am using circleci to deploy an application, I deploy to both amd and arm architectures so my builds are multi-arch which I have been using docker buildx for. With the new arm support from circleci I was able to cut the time on this process down…

Marcus Ruddick
- 9,795
- 7
- 28
- 43
2
votes
0 answers
How to build Docker multiarch image for native code
I've been building some multiarch images for Java apps, based off someone else's multiarch base image which works fine, because the base image includes the right native Java version for the architecture. All I have to do is add my platform-agnostic…

Ramsay Domloge
- 695
- 3
- 11
1
vote
1 answer
File not found inside docker image but the file is there
I'm on a M2 Mac trying to build a docker image for my Rust api.
The image is pushed to a registry and run on an linux/amd64 instance on scaleway.
Here is my dockerfile:
# Build stage
FROM --platform=linux/amd64 rust:1.72-buster as builder
RUN rustup…

user1445685
- 793
- 1
- 11
- 25