Skip to content
This repository has been archived by the owner on Sep 7, 2024. It is now read-only.

Does not work with Docker Compose V2 #3

Open
back-2-95 opened this issue Mar 15, 2022 · 4 comments
Open

Does not work with Docker Compose V2 #3

back-2-95 opened this issue Mar 15, 2022 · 4 comments

Comments

@back-2-95
Copy link

Building images will fail with docker compose up -d as Docker tries to get metadata on local image.

Latest Docker Desktop (at least on Mac) will use V2 by default.

#8 [myproject_php internal] load metadata for docker.io/library/myproject-cli:latest
#8 ERROR: pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed
------
 > [myproject_nginx internal] load metadata for docker.io/library/myproject-cli:latest:
------
failed to solve: failed to solve with frontend dockerfile.v0: failed to create LLB definition: pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed
make: *** [up] Error 17
@tobybellwood
Copy link
Contributor

yup - none of our examples currently work on docker-compose v2 yet 😢 we-re working on how to do it

@back-2-95
Copy link
Author

I tried to overcome this whole morning today and failed. So still keeping our teams using V1.

@tobybellwood
Copy link
Contributor

yes sorry - I do not know why docker-compose needed to change this behaviour so much between 1 and 2 - it's impacted all our examples. I need to get some time to look into how to configure it properly.

@back-2-95
Copy link
Author

This might be working workaround, building cli first:

docker compose build cli
docker compose up -d

up -d seemed to build nginx and php images fine as cli exists locally.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants