[Docker Error] failed to solve with frontend dockerfile.v0: failed to create LLB definition: ์—๋Ÿฌ ํ•ด๊ฒฐํ•˜๊ธฐ

2020. 12. 21. 21:46ใ†๐Ÿ†‡ Error&๊ธฐํƒ€

โ“ ๋ฌธ์ œ

docker ์ด๋ฏธ์ง€๋ฅผ ๋นŒ๋“œํ•˜๋Š” ๊ณผ์ •์—์„œ tag name์„ ์ž˜๋ชป์“ด ๊ฑธ ๊นจ๋‹ซ๊ณ  ctrl+c๋กœ ๋‚˜๊ฐ”๋Š”๋ฐ, ๊ทธ ๋’ค๋กœ ๋นŒ๋“œํ•˜๋ ค๊ณ  ํ•˜๋ฉด ์ด๋Ÿฌํ•œ ์—๋Ÿฌ๊ฐ€ ๋‚˜์˜ค๋ฉด์„œ ์ œ๋Œ€๋กœ ๋นŒ๋“œ๋˜์ง€ ์•Š์•˜์Šต๋‹ˆ๋‹ค.

ailed to solve with frontend dockerfile.v0: failed to create LLB definition: failed to authorize: rpc error: code = Unavailable desc = transport is closing

โœ… ํ•ด๊ฒฐ ๋ฐฉ๋ฒ•

1) ํ„ฐ๋ฏธ๋„์—์„œ ํ•ด๊ฒฐํ•˜๊ธฐ

docker buildkit์„ ์‚ฌ์šฉํ•˜์ง€ ์•Š๊ฒ ๋‹ค๊ณ  ์„ค์ •ํ•˜๋Š” ๋ฐฉ๋ฒ•์œผ๋กœ ํ•ด๊ฒฐํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. bulidkit์€ docker bulid . ๋ช…๋ น์–ด๋ฅผ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋„๋ก ํ•˜๋Š” ํ™˜๊ฒฝ์„ค์ • ์ค‘ ํ•˜๋‚˜์ž…๋‹ˆ๋‹ค.

export DOCKER_BUILDKIT=0 
export COMPOSE_DOCKER_CLI_BUILD=0

์ด๋ ‡๊ฒŒ ํ•ด๊ฒฐํ•˜๋ฉด ์ด๋ฏธ์ง€๋ฅผ ๋นŒ๋“œํ•  ๋•Œ๋งˆ๋‹ค ๊ต‰์žฅํžˆ ๊ธธ๊ณ  ์˜ค๋ž˜ ๊ฑธ๋ ธ์œผ๋ฉฐ, airplaine ์ด๋ฏธ์ง€๊ฐ€ ์ž๊พธ ๊ฐ™์ด ๋‹ค์šด๋ฐ›์•„์ง€๋Š” ๋ฌธ์ œ๊ฐ€ ์žˆ์—ˆ์Šต๋‹ˆ๋‹ค.

 

2) Docker์—์„œ ํ•ด๊ฒฐํ•˜๊ธฐ

๊ทธ๋ž˜์„œ ์ฐพ์€ ๋‹ค๋ฅธ ๋ฐฉ๋ฒ•์€ ์•„์˜ˆ ํ™˜๊ฒฝ์„ ์ฒ˜์Œ์œผ๋กœ ๋˜๋Œ๋ฆฌ๋Š” ๋ฐฉ์‹์ž…๋‹ˆ๋‹ค. docker ์–ดํ”Œ๋ฆฌ์ผ€์ด์…˜์— ๋“ค์–ด๊ฐ€์„œ ์„ค์ • ์˜† ๋ฒŒ๋ ˆ๋ชจ์–‘ ์•„์ด์ฝ˜์„ ๋ˆ„๋ฅธ ๋’ค, "Reset to factory defaults"๋ฅผ ๋ˆŒ๋Ÿฌ์ฃผ๋ฉด ์ด์ „์ฒ˜๋Ÿผ ์˜ˆ์˜๊ฒŒ ๋นŒ๋“œํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

 

๐Ÿ“š์ฐธ๊ณ 

docs.docker.com/develop/develop-images/build_enhancements/

 

Build images with BuildKit

 

docs.docker.com

github.com/docker/buildx/issues/415

 

'docker build' error: "failed to solve with frontend dockerfile.v0" · Issue #415 · docker/buildx

I have tried with the latest version of my channel (Stable or Edge) I have uploaded Diagnostics Diagnostics ID: DAA27533-4D93-4AF4-916C-8492CC6BF66B/20201015121621 Expected behavior I expect to bui...

github.com