1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

dockerで「failed to solve: rpc error: code = Unknown desc = failed to solve with frontend dockerfile.v0: failed to create LLB definition: dockerfile parse error line 6: unknown instruction: MKDIR」

Last updated at Posted at 2023-12-14

macOS(sonoma) + dockerで、
「docker compose build」をすると、下記エラーが発生。

failed to solve: rpc error: code = Unknown desc = failed to solve with frontend dockerfile.v0: failed to create LLB definition: dockerfile parse error line 6: unknown instruction: MKDIR

結論、原因はdocker desktopのバージョンが古いのが原因のようでした。
僕の場合、アップデート後無事エラーが改善されました。
image.png

環境

macOS sonoma(14.1.1)
docker desktop 4.26.0 (130397) ※アプデ前のバージョンは忘れました。。汗おそらく4.1x〜

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?