[Docker] Look up a container's IP address

Created on November 30, 2026

Run docker inspect with the container name or ID. Look under NetworkSettings.Networks for the IPAddress on each attached network.

docker inspect CONTAINER_ID

This command extracts the network information directly.

docker inspect --format '{{json .NetworkSettings.Networks}}' CONTAINER_ID

Replace CONTAINER_ID with the container you want to inspect. A container can have a different address on each network.

Docker