We try to run docker build .. Dockerfile under Mac OS 10.15.7 and encounter the error
failed to solve with frontend dockerfile.v0: failed to create LLB definition: rpc error: code = Unknown desc = error getting credentials - err: exit status 1, out: No stored credential for https://index.docker.io/v1/
Dockerfile
FROM node:10.16.3-alpine AS builder
# other commands
The docker version is 20.10.7
What we have tried
- run
docker login xxxx - add
https://index.docker.io/v1/: {}toauthsof file~/.docker/config.json
Neither of them worked well.
How could we solve this error?