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

Ken February 9, 2018

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
Alexey Chystoprudov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 10, 2018

There's no such option in Bamboo yet, please vote and comment at https://jira.atlassian.com/browse/BAM-18797

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events