whedirector.blogg.se

Docker inspect format json
Docker inspect format json













This displays the low-level information on Docker object(s) (e.g. NetworkSettings.Ports $p -> (index $conf 0).HostPort end' containerĭocker inspect NAME|ID Description Display all port bindings: docker inspect -format=' range $p, $conf :=.Display the configuration information as JSON: docker inspect -format=' json.Display the image name of the container: docker inspect -format='.Display the path to the container's log file: docker inspect -format='.Display a container's IP address: docker inspect -format=' range.Display information about a container, image, or volume using a name or ID: docker inspect container|image|ID.Return low-level information on Docker objects Examples (TL DR) Getting size information on a container.

docker inspect format json

  • Getting the IP address of a container instance.
  • Use an image's ID or name (e.g., repository/name) to get information about the

    DOCKER INSPECT FORMAT JSON HOW TO

    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 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.

    docker inspect format json

    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.

    docker inspect format json

    Provided by: docker.io_1.10.3-0ubuntu6_amd64ĭocker-inspect - Return low-level information on a container or image













    Docker inspect format json