mirror of https://github.com/docker/cli.git
2c1fde2239
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>
(cherry picked from commit
|
||
---|---|---|
.. | ||
testdata | ||
client_test.go | ||
cmd.go | ||
df.go | ||
dial_stdio.go | ||
events.go | ||
info.go | ||
info_test.go | ||
inspect.go | ||
prune.go | ||
prune_test.go | ||
version.go | ||
version_test.go |