Change default docker0 IP/Subnet, so that further containers come up with the new subnet

I am using Ubuntu 16.04
Versions are:
$ docker --version
Docker version 17.03.1-ce, build c6d412e

$ docker-compose --version
docker-compose version 1.11.2, build dfed245

I am interested to change the default subnet “172.17.0.0/16” to something else (for example: 10.1.1.0/16)

So that when new containers are brought up, they get IP address from 10.1.1.0/16 subnet instead of the default 172.17.0.0/16 subnet.

I am accessing this ubuntu server through VPN, which uses this subnet 172.17.0.0 (which is the default for docker).

Finally i got the solution. It was very tricky with systemd on Ubuntu and the latest version of docker.

Thanks to Steve Kamerman (kamermans) for the solution at:

Change the IP subnet of Docker’s docker0 interface: