kimhxsong / Inception

0 stars 0 forks source link

ERROR [internal] load metadata for docker.io/library/... #2

Open kimhxsong opened 2 years ago

kimhxsong commented 2 years ago

Error

(main)⚡ % docker build -t test .                      ~/Inception/srcs/mariadb
[+] Building 1.1s (3/3) FINISHED
 => [internal] load build definition from Dockerfile                       0.0s
 => => transferring dockerfile: 122B                                       0.0s
 => [internal] load .dockerignore                                          0.0s
 => => transferring context: 2B                                            0.0s
 => ERROR [internal] load metadata for docker.io/library/ubuntu:20.04      1.0s
------
 > [internal] load metadata for docker.io/library/ubuntu:20.04:
------
failed to solve with frontend dockerfile.v0: failed to create LLB definition: rpc error: code = Unknown desc = error getting credentials - err: exec: "docker-credential-desktop": executable file not found in $PATH, out: ``

Solved

(main)⚡ % cat ~/.docker/config.json                   ~/Inception/srcs/mariadb
{
  "auths": {
    "https://index.docker.io/v1/": {}
  },
  "credsStore": "desktop"
}
vi ~/.docker/config.json

// credsStore -> credStore

(main)⚡ % cat ~/.docker/config.json                   ~/Inception/srcs/mariadb
{
  "auths": {
    "https://index.docker.io/v1/": {}
  },
  "credStore": "desktop"
}