5
2

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 3 years have passed since last update.

docker-composeを実行しようとしたら、エラー「Cannot locate specified Dockerfile: Dockerfile」

Last updated at Posted at 2020-12-13

前提

  • PyCharmでプロジェクトディレクトリに、
    DockerFile
    docker-compose.yml
    を置いて、docker-composeを実行しようとした。

発生した問題

  • 下記エラーが発生。
Building app
[19832] Failed to execute script docker-compose
Traceback (most recent call last):
  File "compose\cli\main.py", line 67, in main
  File "compose\cli\main.py", line 126, in perform_command
  File "compose\cli\main.py", line 864, in run
  File "compose\cli\main.py", line 1316, in run_one_off_container
  File "compose\project.py", line 615, in up
  File "compose\service.py", line 362, in ensure_image_exists
  File "compose\service.py", line 1147, in build
compose.service.BuildError: (<Service: app>, {'message': 'Cannot locate specified Dockerfile: Dockerfile'})

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "docker-compose", line 3, in <module>
  File "compose\cli\main.py", line 78, in main
TypeError: can only concatenate str (not "dict") to str

対応策

・ファイル名を
DockerFile⇒Dockerfile
に直したら直った。

5
2
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
5
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?