CmdID

CmdID / Commands

docker-inspect

Return low-level information on Docker objects. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Display information about a container, image, or volume using a name or ID

docker inspect containerIdentify

Display 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 reference

Display 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 reference

Display 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 reference

Display 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 reference

Display 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 reference

Display help

docker inspectIdentify