I am running the docker-compose or ‘make build’ command.
The docker-compose.yml file has few services in the order CLI > Nginx > PHP > MariaDB
Within each service section, using the dockerfile property, the path to service ( cli, Nginx, PHP ) are defined, sort of as below for each service.
build: context: . dockerfile: .lagoon/cli.dockerfile
On running the ‘make build’ command, CLI service completes successfully but Nginx service run lands in below error.
Building Nginx [+] Building 2.2s (5/5) FINISHED => [internal] load build definition from nginx.dockerfile 0.0s => => transferring dockerfile: 1.21kB 0.0s => [internal] load .dockerignore 0.0s => => transferring context: 35B 0.0s => CANCELED [internal] load metadata for harbor-nginx-lagoon.XXXXXXX.com/XXXXXX/XXXX_nginx:2021 2.1s => ERROR [internal] load metadata for docker.io/library/XXXXXX-training-sandbox:latest 2.1s => [auth] library/XXXXXX-training-sandbox:pull token for registry-1.docker.io 0.0s ------ > [internal] load metadata for docker.io/library/XXXXXX-training-sandbox:latest: ------ 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 ERROR: Service 'nginx' failed to build : Build failed make: *** [build] Error 1
I tried to read a bit in google trying to figure out the cause of this error but I understand that it is related to insufficient scope or authorization. May I request some guidance on what is the right actions probably towards resolution?
Thank you in advance.