产生问题:Version in “./docker-compose.yml” is unsupported. You might be seeing this error because yo supported version (e.g “2.2” or “3.3”) and place your service definitions under the ‘services’ keions 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/](https://docs.docker.com/compose/compose-file/)

更改docker-compose中的version即可,版本对应

sed -i 's/version: \"3\"/version: \"2\"/g' `ls| grep -E 'docker-compose.yml'`
Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐