Docker Concepts

Docker container name resolution

Containers sharing a user-defined bridge can resolve peer names or aliases. Use the actual application port, not a host-published port. A DNS result is not proof of service health or identity. Example assumes the running server and internal network from the DNS lesson. Record the lookup separately from the service response; a socket timeout is not an overall execution deadline.

Formal Syntax & Structure

docker syntaxdocker
http://CONTAINER_NAME:CONTAINER_PORT/

Working Example

Example Snippetdocker
docker run --rm --pull=never --network bm-v05-dns-net busybox:1.37 wget -T 3 -qO- http://bm-v05-dns:8080/
Docker Reference