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

pipeline - dockerfile extends image FROM private repo



My dockerfile extends an image hosted in a private repo in


FROM myprivaterepo/image:latest

When building, pipeline fails with:

+ docker build -t $IMAGE_NAME .
Sending build context to Docker daemon 37.27MBStep 1/11 : FROM myprivaterepo/image:latest
repository myprivaterepo/image not found: does not exist or no pull access


How could I extend my image with private images?



1 answer

1 accepted

2 votes
Answer accepted

Duh... turns out I had `docker login` missplaced.


For anyone interested in the topic:


docker: true

- step:
# Set $DOCKER_HUB_USERNAME and $DOCKER_HUB_PASSWORD as environment variables in repository settings
- export IMAGE_NAME=myprivaterepo/image:latest
- docker login --username $DOCKER_HUB_USERNAME --password $DOCKER_HUB_PASSWORD
- docker build -t $IMAGE_NAME .
- docker push $IMAGE_NAME

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder :  #!/bin/bash source "$(dirname "$0")/" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

4,055 views 4 22
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