LoginSignup
20
1

More than 1 year has passed since last update.

failed to read dockerfile: open /var/lib/docker/tmp/buildkit-mount****/Dockerfile: no such file or directory の対処法

Last updated at Posted at 2021-10-27

はじめに

ものすごい初歩的な内容となっております。ただ、こんなことでつまづいて時間を使ってほしくはないために書きました。

問題

docker build しようとしたらタイトルのエラーが発生しました。

failed to solve with frontend dockerfile.v0: failed to read dockerfile: open /var/lib/docker/tmp/buildkit-mount****/Dockerfile: no such file or directory

原因

ビルドしようと試みた、現在のディレクトリにはDockerfile がないことが原因のようです。

対処法

Dockerfile のあるディレクトリに移動してビルドすれば解決です。

20
1
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
20
1