From 2f7bf40e733e337dadc998ae99d93fe5da5e4a16 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Mon, 2 Apr 2018 16:07:40 -0700 Subject: [PATCH] Fix --format example for docker history Signed-off-by: Sebastiaan van Stijn --- docs/reference/commandline/history.md | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/docs/reference/commandline/history.md b/docs/reference/commandline/history.md index c05bbca8d1..6814501287 100644 --- a/docs/reference/commandline/history.md +++ b/docs/reference/commandline/history.md @@ -77,17 +77,11 @@ output the data exactly as the template declares or, when using the `table` directive, will include column headers as well. 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 -$ docker images --format "{{.ID}}: {{.Created}} ago" +$ docker history --format "{{.ID}}: {{.CreatedAt}}" busybox -cc1b61406712: 2 weeks ago -: 2 weeks ago -: 2 weeks ago -: 2 weeks ago -: 2 weeks ago -: 3 weeks ago -: 3 weeks ago -: 3 weeks ago +f6e427c148a7: 4 weeks ago +: 4 weeks ago ```