Docker history Command

Docker history Command

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

Docker history Syntax

docker history [OPTIONS] IMAGE

OPTIONS Description.

  • -H : print mirror size and date in a readable format, default is true.
  • –no-trunc : Show the complete submission record.
  • -q : lists only the commit record ID.

Docker history Example

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

root@apidemos:~# docker history apidemos/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
Like(0)