How to communicate between Docker containers via “hostname”

The new networking feature allows you to connect to containers by their name, so if you create a new network, any container connected to that network can reach other containers by their name. Example: 1) Create new network $ docker network create <network-name> 2) Connect containers to network $ docker run –net=<network-name> … or $ … Read more

tech