Syntax docker inspect OPTIONS NAMEID NAMEID. "Image": "48ecf305d2cf7046c1f5f8fcbcd4994403173441d4a7f125b1bb0ceead9de731", The command docker inspect return detailed low-level information on constructs controlled by Docker.
Use an image's ID or name (e.g., repository/name) to get information about the
You can get more information about how to write a Go template from: To get the IP address of a container use: Getting the IP address of a container instance "SandboxKey": "/var/run/docker/netns/6b4851d1903e", Return low-level information on a container, image or task -f, -format Format the output using the given go template -help Print usage -s, -size Display total file sizes if the type is container values are 'image' or 'container' or 'task' -type Return JSON for specified type, (e.g image, container or task) By default, this will render all. To get information on a container use its ID or instance name: Get information about an image when image name conflicts with the container name, e.g.īoth image and container are named rhel7: Return JSON for specified type, permissible values are "image" or "container" The given template will be executed for each result.įormat the output using the given Go template.ĭisplay total file sizes if the type is container. Same name, this will return container JSON for unspecified type. Byĭefault, this will render all results in a JSON array. This displays all the information available in Docker for a given container or image. Provided by: docker.io_1.10.3-0ubuntu6_amd64ĭocker-inspect - Return low-level information on a container or image