Docker inspect: Difference between revisions
Jump to navigation
Jump to search
Line 12: | Line 12: | ||
docker inspect [[[Docker_inspect#-f.2C_--format|-f]] <''format-spec''>] <''container-id''>|<''image-name''> | docker inspect [[[Docker_inspect#-f.2C_--format|-f]] <''format-spec''>] <''container-id''>|<''image-name''> | ||
=Options= | =Options= |
Revision as of 18:02, 5 December 2017
External
Internal
Overview
Generates low-level metadata for a container, image or task as a JSON array. The returned data includes labels, the entrypoint, etc.
docker inspect [-f <format-spec>] <container-id>|<image-name>
Options
-f, --format
Format the output using the given go template.
-f '{{json .Mounts}}'