编写docker-compose.yml文件中常见错误
第一种:低级语法错误显示:You might be seeing this error because you're using the wrongCompose file version. Either specify a supported version (e.g "2.2" or "3.3") andplace your service definitions under the `ser
·
第一种:低级语法错误
显示:
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
第二种:待更新
更多推荐
已为社区贡献2条内容
所有评论(0)