Merge pull request #980 from thaJeztah/fix-history-format-placeholder

Fix --format example for docker history
This commit is contained in:
Sebastiaan van Stijn 2018-04-02 20:14:51 -07:00 committed by GitHub
commit 4faf9a1736
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 10 deletions

View File

@ -77,17 +77,11 @@ output the data exactly as the template declares or, when using the
`table` directive, will include column headers as well. `table` directive, will include column headers as well.
The following example uses a template without headers and outputs the The following example uses a template without headers and outputs the
`ID` and `CreatedSince` entries separated by a colon for all images: `ID` and `CreatedSince` entries separated by a colon for the `busybox` image:
```bash ```bash
$ docker images --format "{{.ID}}: {{.Created}} ago" $ docker history --format "{{.ID}}: {{.CreatedAt}}" busybox
cc1b61406712: 2 weeks ago f6e427c148a7: 4 weeks ago
<missing>: 2 weeks ago <missing>: 4 weeks ago
<missing>: 2 weeks ago
<missing>: 2 weeks ago
<missing>: 2 weeks ago
<missing>: 3 weeks ago
<missing>: 3 weeks ago
<missing>: 3 weeks ago
``` ```