How To Change Docker0 Ip Address?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
1. Stop the running Docker service: sudo service docker stop
2. Stop the Docker daemon process:
sudo pkill –SIGHUP dockerd
3. Edit the Docker daemon configuration file:
sudo nano /etc/docker/daemon.json
4. Add or edit the following line to specify a new IP address for the Docker0 bridge. Substitute the IP address of your choice.
“bip“: “172.17.42.1/24“
5. Save the file and start the Docker service sudo service docker start