我刚刚克隆了一个 git-repository(https://github.com/mailcow/mailcow-dockerized)并希望使用
docker-compose pull
但docker-compose
找不到docker-compose.yml
。
以下是目录列表和docker-compose
输出:
root@xxx:/opt/mailcow-dockerized# ll
total 132
drwxr-xr-x 6 root root 4096 Jun 1 12:52 ./
drwxr-xr-x 4 root root 4096 Jun 1 12:48 ../
-rw-r--r-- 1 root root 3223 Jun 1 12:48 CODE_OF_CONDUCT.md
-rw-r--r-- 1 root root 954 Jun 1 12:48 CONTRIBUTING.md
drwxr-xr-x 6 root root 4096 Jun 1 12:48 data/
-rw-r--r-- 1 root root 15111 Jun 1 12:48 docker-compose.yml
lrwxrwxrwx 1 root root 12 Jun 1 12:48 .env -> mailcow.conf
-rwxr-xr-x 1 root root 7275 Jun 1 12:48 generate_config.sh*
drwxr-xr-x 8 root root 4096 Jun 1 12:48 .git/
drwxr-xr-x 3 root root 4096 Jun 1 12:48 .github/
-rw-r--r-- 1 root root 970 Jun 1 12:48 .gitignore
drwxr-xr-x 2 root root 4096 Jun 1 12:48 helper-scripts/
-rw-r--r-- 1 root root 35141 Jun 1 12:48 LICENSE
-rw------- 1 root root 4132 Jun 1 12:52 mailcow.conf
-rw-r--r-- 1 root root 992 Jun 1 12:48 README.md
-rw-r--r-- 1 root root 1746 Jun 1 12:48 .travis.yml
-rwxr-xr-x 1 root root 16845 Jun 1 12:48 update.sh*
root@xxx:/opt/mailcow-dockerized# docker-compose pull
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
我想我忽略了一些非常明显的东西......