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!
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.