Easy Tutorial
❮ Docker Cp Command Docker Commit Command ❯

Docker history Command

Docker Command Manual


docker history: View the creation history of a specified image.

Syntax

docker history [OPTIONS] IMAGE

OPTIONS Description:

-

-H : Print image size and date in a readable format, default is true;

-

--no-trunc : Show the full commit record;

-

-q : List only the commit record IDs.

Example

View the creation history of the local image tutorialpro/ubuntu:v3.

root@tutorialpro:~# docker history tutorialpro/ubuntu:v3
IMAGE             CREATED           CREATED BY                                      SIZE      COMMENT
4e3b13c8a266      3 months ago      /bin/sh -c #(nop) CMD ["/bin/bash"]             0 B                 
<missing>         3 months ago      /bin/sh -c sed -i 's/^#\s*\(deb.*universe\)$/   1.863 kB            
<missing>         3 months ago      /bin/sh -c set -xe   && echo '#!/bin/sh' > /u   701 B               
<missing>         3 months ago      /bin/sh -c #(nop) ADD file:43cb048516c6b80f22   136.3 MB

Docker Command Manual

❮ Docker Cp Command Docker Commit Command ❯