1.問題描述
docker-compose命令操作容器時,有時會報出“no configuration file provided: not found”問題
[root@centos79 opt]# docker-compose ps
no configuration file provided: not found
[root@centos79 opt]#
2.解決方案
最常見的原因是沒有在docker-compose.yml文件的路徑下執(zhí)行該命令。文章來源:http://www.zghlxwxcb.cn/news/detail-810163.html
docker-compose命令操作容器時需要在yml文件所在路徑執(zhí)行文章來源地址http://www.zghlxwxcb.cn/news/detail-810163.html
[root@centos79 opt]# cd /usr/local/harbor/
[root@centos79 harbor]# ls -l
總用量 782740
drwxr-xr-x 3 root root 20 12月 11 20:20 common
-rw-r--r-- 1 root root 3643 11月 1 15:03 common.sh
-rw-r--r-- 1 root root 5836 12月 11 20:20 docker-compose.yml
-rw-r--r-- 1 root root 801456311 11月 1 15:04 harbor.v2.9.1.tar.gz
-rw-r--r-- 1 root root 13763 12月 11 20:16 harbor.yml
-rw-r--r-- 1 root root 13760 11月 1 15:03 harbor.yml.tmpl
-rwxr-xr-x 1 root root 1975 11月 1 15:03 install.sh
-rw-r--r-- 1 root root 11347 11月 1 15:03 LICENSE
-rwxr-xr-x 1 root root 1881 11月 1 15:03 prepare
[root@centos79 h
到了這里,關(guān)于8-docker-compose命令操作容器報“no configuration file provided: not found”的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!