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
6
votes
3 answers
Docker buildx nodejs fail
I haven't used buildx much and can't figure out what is going on here. When I run a buildx build on my intel Mac, everything builds fine for arm64, but when I have a GitLab runner do the build on an amd64 server, it fails with.
[builder 4/6] RUN…

Greg
- 382
- 1
- 5
- 14
6
votes
1 answer
How do I docker buildx build into a local "registry" container
I am trying to build a multi-arch image but would like to avoid pushing it to docker hub. I've had a lot of trouble finding out how to control the export options. is there a way to make "--push" push to a registry of my choosing?
Any help is…

threehundredfortyfive
- 61
- 1
- 2
5
votes
3 answers
docker Buildx "ERROR: BuildKit is enabled but the buildx component is missing or broken" error
When I try to do a Docker Build using Docker as usual, I get the error message in the image and cannot Build.
What should I do in this case?
By the way, Docker's version is…

michi
- 63
- 1
- 4
5
votes
1 answer
Running BuildKit using docker buildx behind a proxy
My organization uses a http/https proxy. Traffic to the internet must be routed via this proxy.
We're adding multi-architecture support to our jenkins pipelines which build and push the docker images. The HTTP_PROXY and HTTPS_PROXY environment…

darthcrumpet
- 343
- 2
- 5
- 13
5
votes
0 answers
Docker cache odd behaviour for pip install
I'm building Docker containers in a GitHub Actions workflow, and I have a custom caching solution that uses Docker buildx. Essentially, I use the docker buildx build --cache-from and --cache-to arguments to dump the cache from the last build, store…

Jordan
- 3,998
- 9
- 45
- 81
5
votes
0 answers
How to increase BUILDKIT_STEP_LOG_MAX_SIZE when using docker-compose?
When building a project with docker-compose, after a while I get
[output clipped, log limit 1MiB reached]
From https://github.com/docker/buildx/issues/484#issuecomment-812997137, I learned that the log size limit can be altered with…

danmichaelo
- 1,706
- 1
- 25
- 30
5
votes
1 answer
AWS ECR Lifecycle Policy is not executed but works in test
I set images Lifecycle policies to delete untagged images and images with a specific prefix
{
"rules": [
{
"rulePriority": 1,
"description": "Delete untagged images",
"selection": {
"tagStatus": "untagged",
…

passwd
- 2,883
- 3
- 12
- 22
5
votes
0 answers
Docker-compose 3.7 multi-platform configuration
I have just started new AWS t4g linux/arm64 instance and I am having a trouble running docker image on it.
I am using docker-compose.yml version 3.7 and I use gitlab CI runners to build the image.
I have read the official documentation but its a bit…

mrRobot
- 301
- 3
- 12
4
votes
1 answer
Docker plugins are not recognized as commands when running without sudo
I'm running
Ubuntu 20.04.5 LTS
Docker version 23.0.1, build a5ee5b1
Running the command
docker build -t some:other Dockerfile
Produces the following output:
unknown shorthand flag: 't' in -t
And
docker build
The following:
docker: 'buildx' is…

Lupilum
- 363
- 2
- 11
4
votes
1 answer
Docker build-push-action "Not a valid object name"; outputs all branches and tags for repo
When running our docker build in a GitHub Action Workflow, the docker/build-push-action@v2 keeps outputting this error below. This is prior to running any of the commands in our Dockerfile:
Run docker/build-push-action@v2
with:
file:…

Nick
- 4,901
- 40
- 61
4
votes
1 answer
Set condition based on CPU-Arch in Dockerfile
I need to download and install a package directly from GitHub and I need to install some libraries I need for a build from source through pip down the line.
For that I use:
RUN apt-get update && apt-get install -y libavformat-dev libavdevice-dev…

Valentin Metz
- 393
- 6
- 13
4
votes
0 answers
How to use Docker Content Trust to sign multi-arch images built with docker buildx?
I am trying to build, sign, and push a multi-arch container image using a Harbor registry with Notary. Following the steps in https://www.cncf.io/blog/2021/07/28/enforcing-image-trust-on-docker-containers-using-notary/ I was able to get the simple…

Spencer Small
- 91
- 1
- 1
- 5
3
votes
1 answer
Buildx Docker Image Claims to be a Manifest List
I'm trying create a Docker manifest in order to create a multi-platform image my-repo/my-image: on Dockerhub. Building for both platforms at once does not work since the Dockerfile expects a mounted tarball of compiled binaries. Also note…

Beolap
- 768
- 9
- 15
3
votes
1 answer
Is there a way to create multiple tags using the buildx build command in docker?
I am trying to use the docker buildx build command and I would like to be able to create multiple tags in one line. An example of what I have tried
docker buildx build . \
--platform linux/arm64,linux/amd64 \
--no-cache --push \
-t…

Old Man Programmer
- 589
- 3
- 6
- 14
3
votes
3 answers
How do I import and run a multi-platform OCI image in Docker for macOS?
I have a go web service that I've been building with docker build and running with docker run on my M1 Mac and on various Linux machines for a while. It's a simple binary installed on a distroless base and works great. Now I want to make a…

theory
- 9,178
- 10
- 59
- 129