Abd El Rhman Basel
Abd El Rhman Basel

Reputation: 43

Docker | failed to solve with frontend dockerfile.v0: failed to create LLB definition: rpc error: code = Unknown desc

I have been trying to build image in docket but this error occured.

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: error getting credentials - err: exit status 1, out: no usernames for https://index.docker.io/v1/`` Docker ERROR

I searched on stackoverflow and here is potential reason, that docker desktop running on linux container and the image is build from windows image.

Now, about my P.C:

Now i'm working in Ubuntu, what is the solution to my problem?

If the problem is really building my image from windows, how can I build it from ubuntu instead?

I have tried to solve this problem..

Expecting this error to go and build my dockerfile.

Upvotes: 3

Views: 29165

Answers (3)

tn2000
tn2000

Reputation: 758

Try to restart the docker engine.

Upvotes: 1

Otheus
Otheus

Reputation: 1052

Specific to MacOS, in some cases, it may be necessary to run

security unlock-keychain

in order for docker login to succeed. This might be necessary if some kind of (unknown) security token has expired, for instance within a screen/tmux session.

Upvotes: 0

ackroyd
ackroyd

Reputation: 564

I searched for a while on this one. Docker gets in a muddle with your credentials. This following worked for me. Make sure you are logged in on docker desktop then:

rm ~/.docker/config.json

Then do docker login to refresh the credentials

Upvotes: 45

Related Questions