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

  • Post author:
  • Post category:其他




第一种:低级语法错误

显示:

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”

sevice

s


network

s


volume

s



第二种:待更新



版权声明:本文为weixin_47021806原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。