前提
- 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
に直したら直った。