I'm following this guide on how to deploy to ECS. I'm trying to pull from a private Docker Hub image so I'm following this article as well.
Bitbucket pipelines is running successfully. However, that tasks don't actually start running.
Looking at the task details I see " CannotPullContainerError: Error response from daemon: pull access denied for example/pipeline-poc, repository does not exist or may require 'docker login'"
image:
name: atlassian/pipelines-awscli:latest
username: $DOCKER_HUB_USERNAME
password: $DOCKER_HUB_PASSWORD
email: "example@example.com"
What could be the issue?
Hi Phil,
The username and password in the "image" section are only used for pulling the main build container that your build script runs in. Those values are not automatically available when you run docker commands within your build script.
In this case there's no need to include them at all in the image section because you're using a public docker image to run your step.
Instead, you should run a "docker login" command within your build script before running any other docker commands.
If that doesn't help, please post more of your yaml file, including the build script (with any sensitive information blanked out) and indicate exactly which command is failing.
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.