# 查看新的Docker镜像 # docker images REPOSITORY TAG IMAGE ID CREATED SIZE peter/tomcat 7.0 0e9595636ec9 15 minutes ago 796MB centos latest 1e1148e4cc2c 6 weeks ago 202MB
# 查看新Docker镜像的创建历史 # dockerhistory peter/tomcat:7.0 IMAGE CREATED CREATED BY SIZE COMMENT 0e9595636ec9 16 minutes ago /bin/sh -c#(nop) CMD ["/bin/sh" "-c" "/usr… 0B b479edef4230 16 minutes ago /bin/sh -c#(nop) EXPOSE 8080 0B a20730382df2 16 minutes ago /bin/sh -c#(nop) ENV PATH=/usr/local/sbin:… 0B a5513cfc5ca9 16 minutes ago /bin/sh -c#(nop) ENV CATALINA_BASE=/usr/lo… 0B b7be0dfd36f8 16 minutes ago /bin/sh -c#(nop) ENV CATALINA_HOME=/usr/lo… 0B e3a04651ecc3 16 minutes ago /bin/sh -c#(nop) ENV CLASSPATH=.:/usr/loca… 0B 7175d3dc0385 16 minutes ago /bin/sh -c#(nop) ENV JRE_HOME=/usr/local/j… 0B 216b322375a3 16 minutes ago /bin/sh -c#(nop) ENV JAVA_HOME=/usr/local/… 0B 238817a0fa1a 16 minutes ago /bin/sh -c#(nop) WORKDIR /usr/local 0B d94ddbd8b1c1 16 minutes ago /bin/sh -c#(nop) ENV work_path=/usr/local 0B 47d23f3fc6e9 16 minutes ago /bin/sh -c yum -y install vim net-tools 79.5MB 6b892d38a8ae 17 minutes ago /bin/sh -c yum -y update 104MB d1e7e6381726 18 minutes ago /bin/sh -c#(nop) ADD file:21b3872f37d37a6dd… 397MB 6efc79b6ed8b 18 minutes ago /bin/sh -c#(nop) ADD file:0581062dfa97146fd… 13.7MB b3cd54bdd2ca 18 minutes ago /bin/sh -c#(nop) MAINTAINER peter<peter@gm… 0B 1e1148e4cc2c 6 weeks ago /bin/sh -c#(nop) CMD ["/bin/bash"] 0B <missing> 6 weeks ago /bin/sh -c#(nop) LABEL org.label-schema.sc… 0B <missing> 6 weeks ago /bin/sh -c#(nop) ADD file:6f877549795f4798a… 202MB
# 查看当前所有正在运行的Docker容器 # docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES c9544cf44667 peter/tomcat:7.0 "/bin/sh -c '/usr/lo…" 7 seconds ago Up 5 seconds 0.0.0.0:8888->8080/tcp tomcat7.0-front
# 查看当前所有正在运行的Docker容器 # docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 3add0356f6a1 peter/tomcat:7.0 "/bin/sh -c '/usr/lo…" 5 seconds ago Up 3 seconds 0.0.0.0:8888->8080/tcp tomcat7.0-daemon