docker-inspect
Return low-level information on Docker objects. tldr-pages
On several platforms
Several platforms
Display information about a container, image, or volume using a name or ID
docker inspect containerIdentifyDisplay a container's IP address
docker inspect --format '\{\{range.NetworkSettings.Networks\}\}\{\{.IPAddress\}\}\{\{end\}\}' containerIdentify--formatFormat output using a custom template: 'json': Print in JSON format 'TEMPLATE': Print output using the given Go template. Docker CLI referenceDisplay the path to the container's log file
docker inspect --format '\{\{.LogPath\}\}' containerIdentify--formatFormat output using a custom template: 'json': Print in JSON format 'TEMPLATE': Print output using the given Go template. Docker CLI referenceDisplay the image name of the container
docker inspect --format '\{\{.Config.Image\}\}' containerIdentify--formatFormat output using a custom template: 'json': Print in JSON format 'TEMPLATE': Print output using the given Go template. Docker CLI referenceDisplay the configuration information as JSON
docker inspect --format '\{\{json .Config\}\}' containerIdentify--formatFormat output using a custom template: 'json': Print in JSON format 'TEMPLATE': Print output using the given Go template. Docker CLI referenceDisplay all port bindings
docker inspect --format '\{\{range $p, $conf := .NetworkSettings.Ports\}\} \{\{$p\}\} -> \{\{(index $conf 0).HostPort\}\} \{\{end\}\}' containerIdentify--formatFormat output using a custom template: 'json': Print in JSON format 'TEMPLATE': Print output using the given Go template. Docker CLI referenceDisplay help
docker inspectIdentify