Closed wangfeijian closed 9 months ago
docker compose -f docker-compose.prod.yml build
[+] Building 2.1s (4/4) FINISHED
=> [internal] load build definition from Dockerfile 0.1s
=> => transferring dockerfile: 1.53kB 0.0s
=> [internal] load .dockerignore 0.1s
=> => transferring context: 112B 0.0s
=> ERROR [internal] load metadata for docker.io/library/build:latest 2.0s
=> [internal] load metadata for docker.io/library/node:18.15.0-alpine 0.0s
------
> [internal] load metadata for docker.io/library/build:latest:
------
failed to solve: build: pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed (did you mean builder?)
I meet the same error.
You can try the solution in https://github.com/docker/getting-started/issues/124
Another solution is use FROM node:18
instead of FROM node:18-alpine
in Dockerfile
I meet the same error. You can try the solution in #124 Another solution is use
FROM node:18
instead ofFROM node:18-alpine
in Dockerfile
it doesn't work!!
Use docker pull node:18-alpine
at first.
Details see -> https://hub.docker.com/_/node/tags?page=1&name=18-alpine
(base) PS D:\Study\docker\getting-started\app> docker build -t getting-started . [+] Building 87.5s (9/9) FINISHED => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 184B 0.0s => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [internal] load metadata for docker.io/library/node:18-alpine 1.2s => [1/5] FROM docker.io/library/node:18-alpine@sha256:f605fcd5254d0e398e04d93c7b11e2aec2a6e1aeb7da1f99bc40cd101dd8cde4 0.0s => [internal] load build context 13.0s => => transferring context: 2.64MB 12.8s => CACHED [2/5] WORKDIR /app 0.0s => [3/5] COPY . . 4.9s => [4/5] RUN yarn config set strict-ssl false -g 1.3s => ERROR [5/5] RUN yarn install --production 67.0s