Files
skopeo/docs/buildah-containers.md
Brent Baude e50fee5738 cmd/buildah/containers.go: Add JSON output option
Consumers of the buildah output will need structured text like
the JSON format.  This commit adds a --json option to
buildah containers.

Example output:
```
[
    {
        "ID": "8911b523771cb2e0a26ab9bb324fb5be4e992764fdd5ead86a936aa6de964d9a",
        "Builder": true,
        "ImageId": "26db5ad6e82d85265d1609e6bffc04331537fdceb9740d36f576e7ee4e8d1be3",
        "ImageName": "docker.io/library/alpine:latest",
        "ContainerName": "alpine-working-container"
    }
]

```

Signed-off-by: Brent Baude <bbaude@redhat.com>

Closes: #164
Approved by: rhatdan
2017-06-27 16:01:07 +00:00

878 B

buildah-containers "1" "March 2017" "buildah"

NAME

buildah containers - List the working containers and their base images.

SYNOPSIS

buildah containers [options [...]]

DESCRIPTION

Lists containers which appear to be buildah working containers, their names and IDs, and the names and IDs of the images from which they were initialized.

OPTIONS

--json

Output in JSON format.

--noheading, -n

Omit the table headings from the listing of containers.

--notruncate

Do not truncate IDs in output.

--quiet, -q

Displays only the container IDs.

--all, -a

List information about all containers, including those which were not created by and are not being used by buildah.

EXAMPLE

buildah containers

buildah containers --quiet

buildah containers -q --noheading --notruncate

buildah containers --json

SEE ALSO

buildah(1)