本文主要是介绍dockers compose up 报no configuration file provided: not found,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
如果docker-compose文件不在当前路径的下一级:
PS D:\code\GoLandProject\oneProject> docker compose up
no configuration file provided: not found
需要指定配置文件路径:
PS D:\code\GoLandProject\oneProject> docker compose -f script/docker-compose.yaml up
[+] Running 1/1✔ Container script-mysql8-1 Recreated
或者直接在例子中的script目录执行
PS D:\code\GoLandProject\oneProject\script> docker compose up
[+] Running 1/0✔ Container script-mysql8-1 Created
看到ready for connections.即为成功
[Server] /usr/sbin/mysqld: ready for connections. Version: '8.0.29' socket: '/va
r/run/mysqld/mysqld.sock' port: 3306 MySQL Community Server - GPL.
这篇关于dockers compose up 报no configuration file provided: not found的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!