English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Docker history Command

Docker Command大全

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

Syntax

docker history [OPTIONS] IMAGE

OPTIONS description:

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

  • --no-trunc :Show the complete submission record;

  • -q :Only list the ID of the submitted record.

Online Example

View local image w3codebox/ubuntu:v3creation history.

root@w3codebox:~# docker history w3codebox/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大全