lagoon-examples / drupal9-varnish

[NO LONGER MAINTAINED] A ready-to-use Drupal9 example (with Varnish) for use on Lagoon
GNU General Public License v2.0
0 stars 0 forks source link

Does not work with Docker Compose V2 #3

Open back-2-95 opened 2 years ago

back-2-95 commented 2 years ago

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 commented 2 years ago

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

back-2-95 commented 2 years ago

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

tobybellwood commented 2 years ago

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 commented 2 years ago

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.