drupal-graphql / drupal-decoupled-app

Decoupled Drupal demo application based on React, GraphQL and Apollo including server-side rendering.
MIT License
311 stars 76 forks source link

"docker-compose build" failing: repository does not exist or may require authorization #418

Closed shawnachieve closed 3 years ago

shawnachieve commented 3 years ago

I've just installed Lagoon and attempted to build this project per the instructions in the readme file. However, the "docker-compose build" step is failing with the following error messages:

=> [drupal-decoupled-app_frontend internal] load .dockerignore                                                                                          0.0s
 => => transferring context: 2B                                                                                                                          0.0s
 => CANCELED [drupal-decoupled-app internal] load metadata for docker.io/amazeeio/php:7.1-cli-drupal                                                     0.7s
 => CANCELED [drupal-decoupled-app_nginx internal] load metadata for docker.io/amazeeio/nginx-drupal:latest                                              0.6s
 => ERROR [drupal-decoupled-app_php internal] load metadata for docker.io/library/drupal-decoupled-app:latest                                            0.6s
 => CANCELED [drupal-decoupled-app_php internal] load metadata for docker.io/amazeeio/php:7.1-fpm                                                        0.6s
 => CANCELED [drupal-decoupled-app_frontend internal] load metadata for docker.io/amazeeio/node:8                                                        0.6s
 => CANCELED [drupal-decoupled-app_frontend internal] load metadata for docker.io/amazeeio/node:8-builder                                                0.6s
------
 > [drupal-decoupled-app_php internal] load metadata for docker.io/library/drupal-decoupled-app:latest:
------
failed to solve: rpc error: code = Unknown desc = 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

Has something changed or am I missing a setup step somewhere?

My setup steps have been (after cloning this git repo):

gem install pygmy
pygmy up
docker-compose build

Thank you.

stewest commented 3 years ago

Hi @shawnachieve

Try this

docker-compose build cli (<< docker trick to do first, to get full build to work afterwards)
docker-compose build
shawnachieve commented 3 years ago

Thanks @stewest ! That has resolved the issue.