This repository was archived by the owner on Feb 24, 2024. It is now read-only.

Description
I want to use the docker host names to resolve with their docker IP address when being used inside a container, as I didn't figure out how to easily assign fixed IPs.
Example: You have a mysql container named "mysql" and you have another container trying to reach the mysql database. The IP assigned to the mysql container is not fixed and may change during restarts. Therefore I want to use the docker host names which are less often changed.
Well, it seems that docker supports this, but only if you create your own bridge. The default bridge does not resolve the host names.
I tried it out and it seems that docker does resolve names on custom bridges (somehow their docker name and not the host name). Nevertheless, there is an issue when using "--network=mycustombridge" option. The modify editor opens the container with "network mode" = mycustombridge. When I save the dialog, all port forwards are reset. First I have to switch the network mode back to "Bridge" and after that save the modify dialog normally.
I guess this is a bug. "mycustombridge" does not appear in the list of values for network mode, even being selected once using the --network=mycustombridge option.