Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Building the multiplatform docker image in bitbucket pipeline with self hosted runner

Rajat Chawla
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 28, 2025

I am trying to build a multiplatform image i.e. for ARM and AMD. I have installed a self hosted runner inside a kubernetes cluster and its active in bitbucket. 

I have followed below documentation to run the pipeline. but I still get error "unknown flag: --use"

however if i go to the runner and run this command manually "

docker run --rm --privileged multiarch/qemu-user-static --reset -p yes; docker buildx create --use

" then it works

https://support.atlassian.com/bitbucket-cloud/kb/building-multi-architecture-docker-images-with-bitbucket-pipelines/

 

1 answer

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 29, 2025

Hi Rajat and welcome to the community!

I haven't been able to reproduce the issue you are reporting, and I would like to ask for some additional info so I can better help you. Could you please provide the following?

  1. What is the version of the Linux Docker runner you are using? You can find that if you open the failed build on Bitbucket's website and expand the section Runner at the top of the build log.
  2. Could you please share the bitbucket-pipelines.yml for the failed build? I only need:
    • the definition for the step that fails, up to the command docker buildx create --use
    • the Docker image that is used as a build container for that step
    • the docker service definition

If you don't feel comfortable sharing that info here, you can create a support ticket instead, which will be visible only to you, Atlassian staff, and any other users you may add as participants. If you prefer to open a ticket, you can do so via https://support.atlassian.com/contact/#/, in "What can we help you with?" select "Technical issues and bugs" and then Bitbucket Cloud as product. When you are asked to provide the workspace URL, please make sure you enter the URL of the workspace that is on a paid billing plan to proceed with ticket creation.

Please feel free to let me know if you have any questions.

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin Site Admin
TAGS
AUG Leaders

Atlassian Community Events