Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Example search (for tomcat) images on Docker Hub

...

Panel
IMAGE CREATED CREATED BY SIZE COMMENT
09cfca98bf82 4 minutes ago /bin/sh -c #(nop) EXPOSE 80 0B
e0f8728488e3 4 minutes ago /bin/sh -c #(nop) CMD ["/usr/sbin/httpd" "-… 0B
fe1e985876af 4 minutes ago /bin/sh -c #(nop) COPY file:7aa92ce52044b7f0… 20B
4f0abf0cea3b 4 minutes ago /bin/sh -c yum -y update && yum -y install h… 283MB
cd2d92bc1c0c 2 weeks ago /bin/sh -c #(nop) CMD ["/bin/bash"] 0B
<missing> 2 weeks ago /bin/sh -c #(nop) ADD file:119ae574c5d5b6e59… 163MB


Update image from the running or stopped container

Code Block
docker run -it example/amzn-phpinfo2 bin/bash


Code Block
bash-4.2# echo '<?php phpversion() ?>' >/var/www/html/vesrion.php
exit


Code Block
docker ps --all


Code Block
CONTAINER ID        IMAGE                         COMMAND                  CREATED             STATUS                           PORTS               NAMES
8d08f05d5485        example/amzn-phpinfo2         "bin/bash"               4 minutes ago       Exited (0) 13 seconds ago                            determined_pascal
9d839e5a0674        example/amzn-phpinfo2         "/usr/sbin/httpd -D …"   4 minutes ago       Exited (0) 4 minutes ago                             intelligent_chaum


Code Block
docker commit --author "Oleksandr Liutyi" --message "version.php added" 8d08f05d5485 example/amzn-phpinfo2


Code Block
docker image history example/amzn-phpinfo2


Code Block
IMAGE               CREATED              CREATED BY                                      SIZE                COMMENT
afcc5e67edec        About a minute ago   bin/bash                                        112B                version.php added
09cfca98bf82        27 minutes ago       /bin/sh -c #(nop)  EXPOSE 80                    0B
e0f8728488e3        27 minutes ago       /bin/sh -c #(nop)  CMD ["/usr/sbin/httpd" "-…   0B
fe1e985876af        27 minutes ago       /bin/sh -c #(nop) COPY file:7aa92ce52044b7f0…   20B
4f0abf0cea3b        27 minutes ago       /bin/sh -c yum -y update && yum -y install h…   283MB
cd2d92bc1c0c        2 weeks ago          /bin/sh -c #(nop)  CMD ["/bin/bash"]            0B
<missing>           2 weeks ago          /bin/sh -c #(nop) ADD file:119ae574c5d5b6e59…   163MB