Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage
Highlighted

Using a private docker image registry with pipelines Edited

We've got a private registry where we store our development/production images. Whenever I've changed the ./Dockerfile to use this image it stopped working in pipelines.

Something like this fails in my current testing setup and I cannot figure out why...

# authenticate with the Docker Hub registry
- docker login --username $DOCKER_HUB_USERNAME --password $DOCKER_HUB_PASSWORD $PRIVATE_REGISTERY
- docker pull $PRIVATE_REGISTRY:443/imagename

Docker build fails the same way. It will end up throwing a no basic auth error"

Error response from daemon: Get repository/image: no basic auth credentials

Wierd thing is, that when I manually run the same commands on my desktop it works. I've sanity checked that within the CI the ~/.docker/config.json contains the right values.

Docker login gives back `Login Succeeded`... I have the feeling that something within the CI might run under other users. I hope somebody has struggled with this already in the hopes to resolve this or debug to why this happens.

1 comment

Well, we've figured it all out. At the time there was an issue with pipelines and we fixed that with a few commando's in the pipelines file itself. They have long fixed this and my post is no longer relevant.

Comment

Log in or Sign up to comment
TAGS
Community showcase
Published in Bitbucket

Powering DevOps with Bitbucket Server & Data Center

Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster   ! While we’re all excited about the new improvements to Bitbucket ...

2,147 views 0 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you