We defined in the file /etc/docker/daemon.json
our own default-address-pool like below:
"default-address-pools": [
{
"base": "172.17.17.0/24",
"size": 28
}
]
Then the "azure-iot-edge" network got the next pool from the default address pool (docker network inspect azure-iot-edge
):
"Name": "azure-iot-edge",
"Scope": "local",
"Driver": "bridge",
"EnableIPv6": false,
"IPAM": {
"Driver": "default",
"Options": null,
"Config": [
{
"Subnet": "172.17.17.16/28",
"Gateway": "172.17.17.17"
}
]
},
There might also be another option: create your own network within docker and refer to it in the /etc/aziot/config.toml
file as below:
[moby_runtime]
uri = "unix:///var/run/docker.sock"
network = "<your-docker-network>"