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

Docker pull fails when pulling from Docker Hub store within service

Kristofer Ranström January 21, 2019

I'm trying to use an Oracle image from the Docker Hub Store (where there is an active subscription). The image is being used as a service in BB Pipelines.

Performing docker login locally and pulling the image works just fine, however, on BB Pipelines it's not working.

I followed this article and have the following in my bitbucket-pipelines.yml:

definitions:
services:
db-oracle:
image: store/oracle/database-enterprise:12.2.0.1-slim
username: $DOCKER_HUB_USERNAME
password: $DOCKER_HUB_PASSWORD
email: $DOCKER_HUB_EMAIL

 

The variables referenced are setup on the repository, but Pipelines still fails with:

rpc error: code = Unknown desc = Error response from daemon: pull access denied for store/oracle/database-enterprise, repository does not exist or may require 'docker login'

 

Thanks in advance for any help!

 

1 answer

1 accepted

1 vote
Answer accepted
Jeroen De Raedt
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 24, 2019

Hi @Kristofer Ranström,

this could be related to the formatting of the editor here, but it could be that you need to indent the credential section of the image more: 

definitions:
services:
db-oracle:
image: store/oracle/database-enterprise:12.2.0.1-slim
username: $DOCKER_HUB_USERNAME
password: $DOCKER_HUB_PASSWORD
email: $DOCKER_HUB_EMAIL
Kristofer Ranström January 25, 2019

Hi @Jeroen De Raedt

 

Thank you kind for the response. That nearly did it... The proper syntax is actually:


definitions:
services:
db-oracle:
image:
name: store/oracle/database-enterprise:12.2.0.1-slim
username: $DOCKER_HUB_USERNAME
password: $DOCKER_HUB_PASSWORD
email: $DOCKER_HUB_EMAIL

 

It's in the docs, but when using a private repo the image name needs to be indented on a new line.

Like Sam Rogal likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events