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
commit 12c0c13c3b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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