docker inspect

Return low-level information on Docker objects. More information: https://docs.docker.com/reference/cli/docker/inspect/.

docker inspect

docker inspect {{container|image|ID}}

docker inspect --format '\{\{range.NetworkSettings.Networks\}\}\{\{.IPAddress\}\}\{\{end\}\}' {{container}}

docker inspect --format='\{\{.LogPath\}\}' {{container}}

docker inspect --format='\{\{.Config.Image\}\}' {{container}}

docker inspect --format='\{\{json .Config\}\}' {{container}}

docker inspect --format='\{\{range $p, $conf := .NetworkSettings.Ports\}\} \{\{$p\}\} -> \{\{(index $conf 0).HostPort\}\} \{\{end\}\}' {{container}}