From 6ce70a33c5825c0f4d2afae7643db95e8b7d46f1 Mon Sep 17 00:00:00 2001 From: baude Date: Tue, 20 Feb 2018 10:57:37 -0600 Subject: Inspect output should be in array form Inspect should be able to inspect one or more containers depending on the user input. Therefore, inspect output should be in array format so the consumer could potentially iterate it. This PR allows users to specify one more or containers|images|or a mix for inspection. The output, as stated, is therefore in array form. This holds true even for a singular image. In the case that the user enters an invalid container|image "name", we handle that gracefully. Podman will output json for the valid names until it reaches the invalid one. For example: In this case, podman will out the json for alpine and then print an error about 123 being invalid. It will not continute onto busybox. This behavior imatates docker. This addresses issue #360 Signed-off-by: baude Closes: #371 Approved by: baude --- docs/podman-inspect.1.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'docs') diff --git a/docs/podman-inspect.1.md b/docs/podman-inspect.1.md index 9f39deceb..d5996cdf7 100644 --- a/docs/podman-inspect.1.md +++ b/docs/podman-inspect.1.md @@ -6,10 +6,12 @@ podman inspect - Display a container or image's configuration ## SYNOPSIS -**podman** **inspect** [*options* [...]] name +**podman** **inspect** [*options* [...]] name [...] ## DESCRIPTION -This displays the low-level information on containers and images identified by name or ID. By default, this will render all results in a JSON array. If the container and image have the same name, this will return container JSON for unspecified type. If a format is specified, the given template will be executed for each result. +This displays the low-level information on containers and images identified by name or ID. By default, this will render +all results in a JSON array. If the container and image have the same name, this will return container JSON for +unspecified type. If a format is specified, the given template will be executed for each result. ## OPTIONS -- cgit v1.2.3-54-g00ecf