mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Refine document by review comments
Signed-off-by: David Young <yangboh@cn.ibm.com>
This commit is contained in:
parent
bf57339527
commit
8d682bf734
2 changed files with 2 additions and 2 deletions
|
@ -41,7 +41,7 @@ Show the history of when and how an image was created.
|
||||||
511136ea3c5a 10 months ago 0 B Imported from -
|
511136ea3c5a 10 months ago 0 B Imported from -
|
||||||
|
|
||||||
## Show the history of images created through docker commit command
|
## Show the history of images created through docker commit command
|
||||||
`docker commit` command accepts a **-m** parameter to provide comment messages to the image. You can see these messages in image history.
|
The `docker commit` command has a **-m** flag for adding comments to the image. These comments will be displayed in the image history.
|
||||||
|
|
||||||
$ sudo docker history docker:scm
|
$ sudo docker history docker:scm
|
||||||
IMAGE CREATED CREATED BY SIZE COMMENT
|
IMAGE CREATED CREATED BY SIZE COMMENT
|
||||||
|
|
|
@ -1170,7 +1170,7 @@ To see how the `docker:latest` image was built:
|
||||||
750d58736b4b 6 weeks ago /bin/sh -c #(nop) MAINTAINER Tianon Gravi <ad 0 B
|
750d58736b4b 6 weeks ago /bin/sh -c #(nop) MAINTAINER Tianon Gravi <ad 0 B
|
||||||
511136ea3c5a 9 months ago 0 B Imported from -
|
511136ea3c5a 9 months ago 0 B Imported from -
|
||||||
|
|
||||||
To see how the `docker:apache` image which was commited from a container:
|
To see how the `docker:apache` image was added to a container's base image:
|
||||||
|
|
||||||
$ sudo docker history docker:scm
|
$ sudo docker history docker:scm
|
||||||
IMAGE CREATED CREATED BY SIZE COMMENT
|
IMAGE CREATED CREATED BY SIZE COMMENT
|
||||||
|
|
Loading…
Add table
Reference in a new issue