How to change docker default IP address pool

Modified on Tue, 29 Oct at 5:22 PM

When multiple docker deployment exists in the same infrastructure, docker default addressing can cause issues. 



Step 0: Check Embrace internal network configuration

docker network inspect embrace-internal | grep Subnet 

#  "Subnet": "172.18.0.0/16",

Step 1: Shut down Embrace app

./embrace-app.sh --down


Step 2: Remove the Embrace network

docker network rm embrace-internal


Step 3: Edit docker default address pool

Replace the IP range with your preferred setting. 


sudo vim /etc/docker/daemon.json

{
"default-address-pools":
[
{"base":"10.***.0.0/16","size":24}
]
}


Save and quit.


Step 4: Restart docker service

systemctl restart docker


Step 5: Restart Embrace

./embrace-app.sh


Step 6: Check the updated configuration

docker network inspect embrace-internal | grep Subnet 

# "Subnet": "10.***.1.0/24",

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article