Container DNS: how web finds api by name
Select an icon to see what it is.
Step 3 of 6
dockerd answers from its network table
dockerd knows every container on shop-net, with its name and any network aliases. It finds api and answers with 172.18.0.3. Only containers on the same network can look each other up.
DNS answer (decoded message)
api A 172.18.0.3TTL 600