DockerCLI/cli/command/system
Sebastiaan van Stijn 2c1fde2239
fix docker info --format=json not outputting json format
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 46234b82e2)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2023-04-26 12:12:25 +02:00
..
testdata info: fix output including "Labels:" if no labels were set 2022-06-05 14:44:08 +02:00
client_test.go Switch from x/net/context to context 2018-05-11 16:49:43 -07:00
cmd.go Revert "Disable `docker system dial-stdio` on Windows" 2019-03-12 14:57:52 +00:00
df.go Adopt Cobra completion v2 to support completion by CLI plugins 2022-05-12 12:59:10 +02:00
dial_stdio.go Adopt Cobra completion v2 to support completion by CLI plugins 2022-05-12 12:59:10 +02:00
events.go format code with gofumpt 2022-09-30 11:59:11 +02:00
info.go fix docker info --format=json not outputting json format 2023-04-26 12:12:25 +02:00
info_test.go fix docker info --format=json not outputting json format 2023-04-26 12:12:25 +02:00
inspect.go format code with gofumpt 2022-09-30 11:59:11 +02:00
prune.go cmd: set double quotes as code delimiter 2023-01-06 19:15:33 +01:00
prune_test.go bump gotest.tools v3.0.1 for compatibility with Go 1.14 2020-02-23 00:28:55 +01:00
version.go cli/command: add Cli.CurrentVersion() function 2022-11-28 10:49:01 +01:00
version_test.go remove "Experimental" client field from "docker version" 2022-04-08 15:48:00 +02:00