1
0
mirror of https://github.com/docker/cli.git synced 2025-07-30 17:03:07 +03:00

Merge pull request #6051 from thaJeztah/inspect_fix_flags

docs: move flag examples to right section
This commit is contained in:
Sebastiaan van Stijn
2025-05-06 20:29:27 +02:00
committed by GitHub

View File

@ -20,6 +20,8 @@ Docker inspect provides detailed information on constructs controlled by Docker.
By default, `docker inspect` will render results in a JSON array.
## Examples
### <a name="format"></a> Format the output (--format)
If a format is specified, the given template will be executed for each result.
@ -73,8 +75,6 @@ $ docker inspect --size database -f '{{ .SizeRw }}'
12288
```
## Examples
### Get an instance's IP address
For the most part, you can pick out any field from the JSON in a fairly