0
点赞
收藏
分享

微信扫一扫

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

年夜雪 2022-05-04 阅读 101
docker

第一种:低级语法错误

显示:

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 条评论