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.

相关推荐

  1. IDEA

    2024-03-23 18:16:02       62 阅读
  2. sqoop运行

    2024-03-23 18:16:02       61 阅读
  3. yarn install

    2024-03-23 18:16:02       54 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-03-23 18:16:02       98 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-03-23 18:16:02       106 阅读
  3. 在Django里面运行非项目文件

    2024-03-23 18:16:02       87 阅读
  4. Python语言-面向对象

    2024-03-23 18:16:02       96 阅读

热门阅读

  1. H5 与 App、网页之间的通信

    2024-03-23 18:16:02       46 阅读
  2. 解锁算法效率:掌握时间复杂度O(n)的艺术

    2024-03-23 18:16:02       37 阅读
  3. TypeScript 数据类型

    2024-03-23 18:16:02       39 阅读
  4. 自然语言处理:人机交流的桥梁

    2024-03-23 18:16:02       35 阅读
  5. 【CMake】所见所闻所学

    2024-03-23 18:16:02       39 阅读
  6. 机器学习揭秘:解锁从理论到实践的每一步!

    2024-03-23 18:16:02       45 阅读
  7. 部署Elasticsearch集群,实现海量航迹数据存储

    2024-03-23 18:16:02       41 阅读
  8. linux查看攻击者ip

    2024-03-23 18:16:02       34 阅读