๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
Develop/DevOps

[docker] ERROR [internal] load metadata for docker.io/library/node:14.17.0-alpine

by 3-stack 2021. 12. 28.

[ ์—๋Ÿฌ ] ๐Ÿ˜ก

ํ•ญ์ƒ ์ž˜ ์จ์˜ค๋˜ Dockerfile๋กœ ๋นŒ๋“œ ๋ช…๋ น์–ด๋ฅผ ์‹คํ–‰ํ•˜์ž ์•„๋ž˜์™€ ๊ฐ™์€ ๋ฉ”์‹œ์ง€์™€ ํ•จ๊ป˜ ์‹คํŒจํ•œ๋‹ค.

์‹คํ–‰ํ™˜๊ฒฝ์€ Windows์˜ WSL2 ์ด๋‹ค.

  • ERROR [internal] load metadata for docker.io/library/node:14.17.0-alpine  
  • failed to solve with {์ปจํ…Œ์ด๋„ˆ ์ด๋ฆ„} dockerfile.v0: failed to create LLB definition: rpc error: code = Unknown desc = error getting credentials - err: exit status 1, out: ``
$ docker build --tag superpower/pes-server-dev --file Dockerfile.dev ./
[+] Building 0.9s (2/3)                                                                                                                                                                                                  
[+] Building 1.0s (3/3) FINISHED                                                                                                                                                                                         
 => [internal] load build definition from Dockerfile.dev                                                                                                                                                            0.0s
 => => transferring dockerfile: 42B                                                                                                                                                                                 0.0s
 => [internal] load .dockerignore                                                                                                                                                                                   0.0s
 => => transferring context: 35B                                                                                                                                                                                    0.0s
 => ERROR [internal] load metadata for docker.io/library/node:14.17.0-alpine                                                                                                                                        0.9s
------
 > [internal] load metadata for docker.io/library/node:14.17.0-alpine:
------
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: ``

 

[ TRY-1 ์‹คํŒจ ] ๐Ÿ˜ฅ

์ œ์ผ ํ•˜๋‹จ "Reset to factory defaults" - ๋ชจ๋“  ์„ธํŒ…์„ ์ดˆ๊ธฐํ™”ํ•˜๊ณ  ์‹œ๋„ํ•ด๋„ ๋™์ผํ•œ ์˜ค๋ฅ˜ ๋ฐœ์ƒ.

 

[ TRY-2 ์„ฑ๊ณต ] ๐Ÿ˜

WSL2 ์—์„œ ์‚ฌ์šฉํ•˜๋Š” `docker config`๋ฅผ ์‚ญ์ œํ•˜๊ฑฐ๋‚˜ ์ˆ˜์ •ํ•ด์ฃผ๋ฉด ํ•ด๊ฒฐ๋œ๋‹ค.

1. ์‚ญ์ œ

rm ~/.docker/config.json

2. ์ˆ˜์ •

 "credsStore": "desktop.exe" to "credStore": "desktop.exe" in ~/.docker/config.json

 

[์ฐธ๊ณ ]

๋Œ“๊ธ€