Created
June 15, 2020 12:50
-
-
Save hosszukalman/59a4119e64036169271798efe351c2ab to your computer and use it in GitHub Desktop.
Set up docker to handle more than 31 neworks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
vim /etc/docker/daemon.json | |
service docker restart | |
docker network create foo | |
docker network inspect foo | grep Subnet # "Subnet": "10.10.1.0/24" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"default-address-pools": | |
[ | |
{"base":"10.10.0.0/16","size":24} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment