我有这个文件:
docker-compose.test.yml
但是当我尝试运行
docker-compose
时,会发生这种情况:
$ docker-compose up
ERROR:
Can't find a suitable configuration file in this directory or any
parent. Are you in the right directory?
Supported filenames: docker-compose.yml, docker-compose.yaml
是否有一些选项可以指定使用哪个文件?
使用
-f
选项指定文件名。
示例:
docker compose -f docker-compose.test.yml up