编写docker-compose.yml文件中常见错误

年夜雪

关注

阅读 102

2022-05-04

第一种:低级语法错误

显示:

You might be seeing this error because you're using the wrong 
Compose file version. Either specify a supported version (e.g "2.2" or "3.3") and
 place your service definitions under the `services` key, or omit the `version`
 key and place your service definitions at the root of the file to use version 1.

并不是版本错误,不用查找版本version: "3.9"之类的错误

是文件docker-compose.yml中的单词用错了
version: “3.9”
sevices
networks
volumes

第二种:待更新

精彩评论(0)

0 0 举报