Skip to content

Instantly share code, notes, and snippets.

@hosszukalman
Created June 15, 2020 12:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hosszukalman/59a4119e64036169271798efe351c2ab to your computer and use it in GitHub Desktop.
Save hosszukalman/59a4119e64036169271798efe351c2ab to your computer and use it in GitHub Desktop.
Set up docker to handle more than 31 neworks
#!/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"
{
"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