-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compose build doesn't respect credential helpers #5854
Comments
does using the CLI ( |
Yes it works. Starts by pulling the image. |
@laszlocph Was this on Windows by any chance? |
Ubuntu 17.10 :( |
Same issue here.
|
Possibly related: #5950 |
same here on macos
and linux
build passes if all images are retrieved using |
…ge pull Together with using Compose file 2.1 syntax, this is a solution to network cleanup issue described in: * #1767 * #739 * testcontainers/moby-ryuk#2 * docker/compose#6636 Solution to general credential helper authenticated pull issues in: * docker/compose#5854 Tangentially should add support for v3 syntax (not yet tested) re #531
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Satisfying the stale bot with this comment. The above linked PR has promising work aiming to solve this. |
This issue has been automatically marked as not stale anymore due to the recent activity. |
Can't reproduce your issue with the last version of compose > docker-compose version
docker-compose version 1.24.1, build 4667896
docker-py version: 3.7.3
CPython version: 3.7.4
OpenSSL version: OpenSSL 1.1.1d 10 Sep 2019 & > gcloud --version
Google Cloud SDK 266.0.0
bq 2.0.48
core 2019.10.04
docker-credential-gcr
gsutil 4.44 Can you give a try & let me know ? |
I cannot reporoduce the issue anymore 👍
|
Cool 👍 |
* Upgrade docker-compose image to latest version and perform direct image pull Together with using Compose file 2.1 syntax, this is a solution to network cleanup issue described in: * #1767 * #739 * testcontainers/moby-ryuk#2 * docker/compose#6636 Solution to general credential helper authenticated pull issues in: * docker/compose#5854 Tangentially should add support for v3 syntax (not yet tested) re #531
When I'm running
docker-compose build
it's not able to pull private base images.WHAT I EXPERIENCE
I use docker-credential-gcr and my
~/.docker/config.json
is correctly set up.docker pull myprivaterepo/myimage
docker-compose pull
if the image is used as a service imagedocker-compose build
as the private base image cannot be pulled.ERROR: Service 'hello' failed to build: unauthorized: You don't have the needed permissions to perform this operation, and you may have invalid credentials. To authenticate your request, follow the steps in: https://cloud.google.com/container-registry/docs/advanced-authentication
WHAT I EXPECT
Since I'm able to pull the image with
docker pull
, Compose should be able to pull too even in a build phase.REPRO CASE
Dockerfile
docker-compose.yml
ENV
The text was updated successfully, but these errors were encountered: