docker history命令-显示一个image的历史

history 主要用于显示一个image的历史

Usage: docker history [OPTIONS] IMAGE


Show the history of an image

--no-trunc=falseDon't truncate output
-q, --quiet=false Only show numeric IDs

To see how the docker:latest image was built:

$ docker history docker

IMAGE CREATED CREATED BY SIZE
3e23a5875458790b7a806f95f7ec0d0b2a5c1659bfc899c89f939f6d5b8f70948 days ago /bin/sh -c #(nop) ENV LC_ALL=C.UTF-8 0 B8578938dd17054dce7993d21de79e96a037400e8d28e15e7290fea4f65128a368 days ago /bin/sh -c dpkg-reconfigure locales && locale-gen C.UTF-8&&/usr/sbin/update-locale LANG=C.UTF-81.245 MB
be51b77efb42f67a5e96437b3e102f81e0a1399038f77bf28cea0ed23a65cf60
8 days ago /bin/sh -c apt-get update && apt-get install -y git libxml2-dev python build-essential make gcc python-dev locales python-pip 338.3 MB
4b137612be55ca69776c7f30c2d2dd0aa2e7d72059820abf3e25b629f887a0846 weeks ago /bin/sh -c #(nop) ADD jessie.tar.xz in / 121 MB750d58736b4b6cc0f9a9abe8f258cef269e3e9dceced1146503522be9f985ada6 weeks ago /bin/sh -c #(nop) MAINTAINER Tianon Gravi <admwiggin@gmail.com> - mkimage-debootstrap.sh -t jessie.tar.xz jessie http://http.debian.net/debian 0 B511136ea3c5a64f264b78b5433614aec563103b4d4702f3ba7d4d2698e22c1589 months ago