1. Help & Support
  2. Hyperglance Admin

How To Change The Default Docker Subnet IP Range

By default, Docker uses This can conflict with the IP range you use for your cloud subnet range.

In this article, you'll learn:

  • How to change Docker's default subnet IP range

Step 1

SSH into the Hyperglance Instance/VM.

Step 2

You need to edit /etc/docker/daemon.json.

Add "bip": "" to the JSON, in daemon.json.

sudo vi /etc/docker/daemon.json

The JSON will look like this after you updated it:

"log-driver": "journald",
"log-opts": {
"tag": "{{.Name}}"
"bip": ""

Don't forget to add a comma ',' after the second-last brace '}'

Step 3

Restart Docker:

sudo systemctl restart docker

Step 4

Check the routing table:

netstat -rn

You should see the following output (see the relevant line in bold):

Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface UG 0 0 0 eth0 UH 0 0 0 eth0 U 0 0 0 br-e9768d205a82 U 0 0 0 docker0 U 0 0 0 eth0

Once you're done, the docker containers will restart, and then begin to collect.

Hyperglance is trusted by some of the world's largest companies, and government agencies.

If you'd like to know how Hyperglance helps you optimise the management of your cloud infrastructure, visit hyperglance.com