version: '2.3' networks: cow-cow5: services: ...... cow: networks: - cow-cow5
version: '2.3' networks: cow-cow5: driver: bridge ipam: driver: default config: - subnet: 10.88.12.0/24 gateway: 10.88.12.1 services: cowrie: ...... networks: - cow-cow
1)版本(必須是18.09.1)html
docker-ce-cli-18.09.1-3.el7.x86_64 docker-ce-18.09.1-3.el7.x86_64
2)在/etc/docker/daemon.json中添加linux
{ "debug" : true, "default-address-pools" : [ { "base" : "12.11.0.0/16", "size" : 24 } ] }
systemctl restart docker
四、經測試結果生效,得出如下結論git
安裝腳本:github
https://github.com/Lemon-le/Shell-Script/blob/master/install_docker_v18-09-1.sh (docker) docker
https://github.com/Lemon-le/Shell-Script/blob/master/install_docker_compose.sh (docker-compose)json
官網安裝手冊:centos
https://docs.docker.com/install/linux/docker-ce/centos/ (docker)安全
https://docs.docker.com/compose/install/ (docker-compose)網絡