Does Bitbucket Pipelines support docker buildx?
Example:
docker buildx build --platform linux/amd64,linux/arm64 -t "$IMAGE_NAME" --push .
@Monica Gordillo Currently building multi-arch images is only supported using a self-hosted runner. An example can be found here
Are there any plans on supporting this in the cloud runners? The point of using bitbucket cloud is to not self host things.
@Mathieu Lemay Yes, we will be supporting it on cloud runners. We are currently currently blocked by a bug in BuildKit. We will be enabling BuildKit on cloud runner once the bug is fixed or when we find a workaround.
Hi @Justin Thomas @Mathieu Lemay , it seems that there's a new docker version where the bug may be fixed (version 20.10.15). Did you try it? See https://github.com/moby/buildkit/issues/2087#issuecomment-1121740254
Thanks in advance!
Hello Guys, so am i able to create multi arch docket buildx build for my image in bitbucket pipeline?
I'm just trying to do regular builds now it seems that this is failing because buildx is becoming the default. Simply disabling buildx really doesn't seem like it's going to be a good long term solution to this.
# This is just a hack...export DOCKER_BUILDKIT=0
What do we do long term when the hack/workaround of explicitly disabling the new defaults no longer continue working, especially if Docker just decided they no longer want to support the legacy builder? Are we boned? 🤔
---
Edit (2024-03-12): While I'm here, I wanted to update what my longer term fix for this was. Since Bitbucket Pipelines does at least expose it's own docker binary, you can use that without hacky environment variable overrides like the above, e.g.:
# Ensure the Pipelines managed "docker" binary is used instead of the one built into the image by# ensuring /usr/bin takes precedence over /usr/local/bin (required for BuildKit support, i.e. buildx). See:export PATH=/usr/bin:$PATH
See also https://community.atlassian.com/t5/Bitbucket-questions/Docker-build-failing-for-buildkit-with-error-authorization/qaq-p/2377667#M94515
Any updates on being able to use docker buildx command on pipelines without a remote host? Just searching it appears GitHub allows this to take place. https://www.docker.com/blog/multi-arch-build-and-images-the-simple-way/
Any thoughts on making this happen?
Atlassian - please fix this buildx support.
You are making it hard for me to justify staying on bitbucket as much as I would prefer not moving to github
It looks like you're new here. Sign in or register to get started.