Konubinix' opinionated web of thoughts

Docker

fleeting

Networking with standalone containers

Notice that this network’s gateway is 172.18.0.1, as opposed to the default bridge network, whose gateway is 172.17.0.1. The exact IP address may be different on your system.

https://docs.docker.com/network/network-tutorial-standalone/

docker run -dit –name alpine1 –network alpine-net alpine ash

https://docs.docker.com/network/network-tutorial-standalone/

On user-defined networks like alpine-net, containers can not only communicate by IP address, but can also resolve a container name to an IP address. This capability is called automatic service discovery.

https://docs.docker.com/network/network-tutorial-standalone/

Automatic service discovery can only resolve custom container names, not default automatically generated container names,

https://docs.docker.com/network/network-tutorial-standalone/

Notes pointant ici