182k views
3 votes
What command provides a 'human readable' method of showing the JSON output from inspect commands?

A) docker inspect -f '{{json .}}'

B) docker show -j

C) docker readable inspect

D) docker inspect --human

1 Answer

3 votes

The 'docker inspect -f '{{json .}}'' command formats the 'docker inspect' output to a more human-readable JSON formatted string.

The command that provides a 'human readable' method of showing the JSON output from inspect commands in Docker is A) docker inspect -f '{{json .}}'. This command uses a Go template to format the output of the docker inspect command. When you append '{{json .}}' after the -f (format) flag, it converts the output to a JSON formatted string, which is more readable than the raw JSON output.

User Delia
by
7.9k points