[root@centos-ops ~]# docker images;
REPOSITORY TAG IMAGE ID CREATED SIZE
tlh/centos7_web v1 6d90ccf79fbd 16 hours ago 563 MB
tlhao/static_web latest 361a66b91e03 17 hours ago 222 MB
可以使用 history 命令
[root@centos-ops ~]# docker history 6d90ccf79fbd
IMAGE CREATED CREATED BY SIZE COMMENT
6d90ccf79fbd 16 hours ago /bin/sh -c sh /tmp/install.sh 180 MB
9699fe3a7ffc 16 hours ago /bin/sh -c #(nop) COPY file:4c2f0602d05e35... 832 B
e9259d6323f9 16 hours ago /bin/sh -c #(nop) COPY file:be78dc3730caab... 354 B
3daab6707bbc 16 hours ago /bin/sh -c #(nop) ENV REFRESHED_AT=2019-0... 0 B
1b6ac74805c5 16 hours ago /bin/sh -c #(nop) MAINTAINER Tl Hao "2145... 0 B
4842f0bd3d61 23 months ago /bin/sh -c #(nop) LABEL io.openshift.buil... 0 B
<missing> 23 months ago /bin/sh -c #(nop) CMD ["base-usage"] 0 B
<missing> 23 months ago /bin/sh -c #(nop) ENTRYPOINT ["container-... 0 B
<missing> 23 months ago /bin/sh -c #(nop) WORKDIR /opt/app-root/src 0 B
<missing> 23 months ago /bin/sh -c #(nop) COPY dir:db143564578605b... 3.93 kB
23 months ago /bin/sh -c rpmkeys --importfile:///etc/pk... 191 MB
<missing> 23 months ago /bin/sh -c #(nop) ENV BASH_ENV=/opt/app-r... 0 B
<missing> 23 months ago /bin/sh -c #(nop) COPY file:92abfe3dd1d63a... 81 B
<missing> 23 months ago /bin/sh -c #(nop) ENV STI_SCRIPTS_URL=ima... 0 B
<missing> 23 months ago /bin/sh -c #(nop) LABEL io.openshift.s2i.... 0 B
<missing> 23 months ago /bin/sh -c #(nop) MAINTAINER Jakub Hadvig... 0 B
<missing> 2 years ago /bin/sh -c #(nop) CMD ["/bin/bash"] 0 B
<missing> 2 years ago /bin/sh -c #(nop) LABEL name=CentOS Base ... 0 B
<missing> 2 years ago /bin/sh -c #(nop) ADD file:940c77b6724c00d... 192 MB
2 years ago /bin/sh -c #(nop) MAINTAINERhttps://gith... 0 B
[root@centos-ops ~]# docker history 361a66b91e03
IMAGE CREATED CREATED BY SIZE COMMENT
361a66b91e03 18 hours ago /bin/sh -c #(nop) EXPOSE 80/tcp 0 B
c05287db618f 18 hours ago /bin/sh -c echo 'Hi ,I am in your containe... 27 B
3c9e444354cc 18 hours ago /bin/sh -c apt-get install -y nginx 20.9 MB
1a36d94b6766 18 hours ago /bin/sh -c apt-get update 13.3 MB
09ae6f633ed9 18 hours ago /bin/sh -c #(nop) MAINTAINER Tl Hao "2145... 0 B
f17b6a61de28 6 weeks ago /bin/sh -c #(nop) CMD ["/bin/bash"] 0 B
<missing> 6 weeks ago /bin/sh -c mkdir -p /run/systemd && echo '... 7 B
<missing> 6 weeks ago /bin/sh -c rm -rf /var/lib/apt/lists/* 0 B
<missing> 6 weeks ago /bin/sh -c set -xe && echo '#!/bin/sh' >... 195 kB
<missing> 6 weeks ago /bin/sh -c #(nop) ADD file:8921935f38cde7b... 188 MB
仅供参考
网友评论