Linux修改docker-compose中的version
产生问题: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 a
·
产生问题: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'`
更多推荐
已为社区贡献1条内容
所有评论(0)