3
I would like to exchange (or remove) the 172.17.0.1 address used by the Ocker networks, has how to do this?
I use Docker for php development and have a remote repository (git) configured via a VPN using the IP range 172.17.X. X.
Whenever my containers are up, the Docker network uses this IP range and I am unable to make any request to the remote repository.
Thank you.
NOTE: I use a Linux environment (Mint 19)
I was able to solve my problem by setting a subnet on the network used by my containers in the file Docker-Compose.yml. That way:
networks: frontend: driver: bridge ipam: config: - subnet: 172.18.0.0/16 backend: driver: bridge ipam: config: - subnet: 172.19.0.0/16
I had already included in this file a configuration for the bridge network starting at 172.30.0.1 (I put only the bip option). Did I have to specify all options that are indicated in doc? Thank you
– Rico Macedo
Your
daemon.json
is the same as the documentation?– Tuxpilgrim
No. There is a json with the bip option only.
– Rico Macedo
I didn’t understand if the gateway and if dns should be set based on my real network or leave these values even standards. That’s why I left only the Bep option
– Rico Macedo
In doc says that you edit only what will customize (Only specify the Settings you need to customize.), can leave your
daemon
only thebip
same. Restarted the Docker after you made the changes?– Tuxpilgrim
Yes. I restarted yes
– Rico Macedo
So.. I would recommend you set up a new one
bridge
and add todaemon.json
({"bridge" : "minha_rede"}
) , That’s the only way it’s supposed to work.– Tuxpilgrim