Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Is there a way to pass arguments to docker build in the Bamboo Docker "Build a Docker image" task?

I can see in the documentation for the Docker task that you can specify environment variables for the "Build a Docker image", but what about arguments to the actual docker build command?

Specifically, I would like to use the "--add-host" argument for my docker build. I'd like to use it at build because I can't use it in my docker run command (I'm running this container outside of Bamboo).

I think I can get around this issue by manipulating my Dockerfile and/or container script to manipulate /etc/hosts directly; but it would be a lot cleaner, IMO, if I had access to the docker-provided option.

1 answer

1 accepted

2 votes
Answer accepted

There's no such option in Bamboo yet, please vote and comment at

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events