Build a job using a Docker image from a private repository

David Gard
Contributor
July 5, 2019

Hello,

We're looking at running jobs in Docker containers as opposed to in the agent environment. While it seems pretty easy to set up, I can't see any option for adding credentials for a private repository.

Is it possible to use Docker images from a private repository?

If not, I'd like to feed back that this feature is pretty useless. Most images on Docker hub run as a non-privileged user, meaning that we would not be able to install required packages (such as jq, Octo, and many, many more). To be honest, even if we could install those tools prior to building, having to do it every time would add far more overhead to the Bamboo server in terms of both time and bandwidth.

Thanks,
David

1 answer

1 accepted

0 votes
Answer accepted
Steffen Opel _Utoolity_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 5, 2019

Unfortunately this is indeed not yet supported - please watch and vote for the following issue to increase Atlassian's priority for closing this notable gap:

Please note that the workaround listed there has been discussed in more detail in how to configure docker runner to authorize with private docker registry, so if your happen to target the Amazon Elastic Container Registry, the last comment by Stephen Leavitt points out that this special case can be nicely addressed via the Amazon ECR Docker Credential Helper meanwhile.

David Gard
Contributor
July 5, 2019

Thanks for your reply,

It's quite disappointing to see that Bamboo have marked this as low priority in the issue you linked and are not actively working to add this vital feature, especially given the rise in rise in popularity of containerisation.

I have added my vote, fingers crossed other do to.

Thanks,
David

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events