docker-compose启动报异常

ERROR: The Compose file './docker-compose.yml' is invalid because:
Invalid top-level property "True". Valid top-level sections for this Compose file are: version, services, networks, volumes, secrets, configs, and extensions starting with "x-".

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.
For more on the Compose file format versions, see https://docs.docker.com/compose/compose-file/
 

----------------------------

 

主要看一下复制文本的时候,vesion这个英文有没有复制全。

不知道为什么, 复制时是全选,但拷贝到vi中时会丢掉vesi只留下on

on个屁啊,坑爹。。。。。。。。。。。。


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