Change default docker IP address

$ sudo systemctl stop docker
$ sudo touch /etc/docker/daemon.json
{
"bip": "192.168.1.5/24",
"fixed-cidr": "192.168.1.5/25"
}
$ sudo systemctl start docker

Check your docker0 ip address now:

$ ip addr

Leave a Reply

Your email address will not be published. Required fields are marked *