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.
There's no such option in Bamboo yet, please vote and comment at https://jira.atlassian.com/browse/BAM-18797
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.