Docker failed to solve with frontend dockerfile.v0: No stored credential for https://index.docker.io/v1/

Viewed 296

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/: {} to auths of file ~/.docker/config.json

Neither of them worked well.

How could we solve this error?

1 Answers

Here is one workaround for this issue.

Just run docker pull the specific docker image manually.

Related