Latest web development tutorials

Docker history command

Docker command Daquan Docker command Daquan


docker history: Specifies to create a mirror of history.

grammar

docker history [OPTIONS] IMAGE

OPTIONS Description:

  • -H: A readable format print image size and date, the default is true;

  • --no-trunc: Display complete submission records;

  • -q: list only commit the record ID.

Examples

Check local mirror w3big / ubuntu: v3 to create history.

root@w3big:~# docker history w3big/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 Daquan Docker command Daquan