Forums

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

How do I do a Golang build that uses private repos inside a docker build?

andrew_vos
January 2, 2026

I have a docker build that needs to `go get` and pull some packages from private repos.

I'm running using the default Atlassian image, and it is able to build the binary outside of docker, but when I do `docker build` I don't have access to the same ssh keys.

How can I copy these keys inside the docker build? I can't find any keys in `/root/.ssh` or in any other location?

 

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events