Commandes Linux : docker image history


Commande : docker image history
Usage:	docker image history [OPTIONS] IMAGE

Show the history of an image

      --format string   Pretty-print images using a Go template
  -H, --human           Print sizes and dates in human readable format (default true)
      --no-trunc        Don't truncate output
  -q, --quiet           Only show numeric IDs


Afficher l’historique d’une image :

docker image history image

Equivaut à :
docker history image
ex :

$ docker image history ubuntu
IMAGE               CREATED             CREATED BY                                      SIZE                COMMENT
113a43faa138        3 weeks ago         /bin/sh -c #(nop)  CMD ["/bin/bash"]            0B                  
           3 weeks ago         /bin/sh -c mkdir -p /run/systemd && echo 'do…   7B                  
           3 weeks ago         /bin/sh -c sed -i 's/^#\s*\(deb.*universe\)$…   2.76kB              
           3 weeks ago         /bin/sh -c rm -rf /var/lib/apt/lists/*          0B                  
           3 weeks ago         /bin/sh -c set -xe   && echo '#!/bin/sh' > /…   745B                
           3 weeks ago         /bin/sh -c #(nop) ADD file:28c0771e44ff530db…   81.1MB