ERROR: Version in "./docker-compose.yml" is unsupported. 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/

 

查看当前docker-compose版本

[root@localhost]# docker-compose -v
docker-compose version 1.23.2, build 1110ad01

 

解决:

docker-compose版本太低,升级docker-compose版本

升级方法

https://www.cnblogs.com/xiaoyou2018/p/12925220.html

posted on 2024-06-05 16:41  小油2018  阅读(86)  评论(0编辑  收藏  举报