LATEST=$(curl -Ls -w %{url_effective} -o /dev/null https://github.com/docker/compose/releases/latest) && LATEST=${LATEST##*/} && curl -L https://github.com/docker/compose/releases/download/$LATEST/docker-compose-$(uname -s)-$(uname -m) > /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
1.27.2 之前的版本当在 YAML 文件内,创建自定义网络,自定义网关的时候可能出现
docker-compose up 报错
networks.demo_dev.ipam.config value Additional properties are not allowed (‘gateway’ was unexpected)
sudo rm /usr/local/bin/docker-compose
pip uninstall docker-compose