mirror of
https://github.com/docker/cli.git
synced 2025-11-22 18:03:07 +03:00
The --format=json option was added for all inspect commands, but was not implemented
for "docker info". This patch implements the missing option.
Before this patch:
docker info --format=json
json
With this patch applied:
docker info --format=json
{"ID":"80c2f18a-2c88-4e4a-ba69-dca0eea59835","Containers":7,"ContainersRunning":"..."}
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1.0 KiB
1.0 KiB
system info
Display system-wide information
Aliases
docker system info, docker info
Options
| Name | Type | Default | Description |
|---|---|---|---|
-f, --format |
string |
Format output using a custom template: 'json': Print in JSON format 'TEMPLATE': Print output using the given Go template. Refer to https://docs.docker.com/go/formatting/ for more information about formatting output with templates |