{"id":6580,"date":"2017-03-27T16:10:16","date_gmt":"2017-03-27T08:10:16","guid":{"rendered":"http:\/\/rmohan.com\/?p=6580"},"modified":"2017-03-27T16:10:16","modified_gmt":"2017-03-27T08:10:16","slug":"docker-testing","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=6580","title":{"rendered":"DOCKER Testing"},"content":{"rendered":"<p>Obtaining the Docker image<\/p>\n<p>First, get the basic Docker image. The Docker image is published on the Docker Hub Registry (https:\/\/hub.docker.com\/).<br \/>\nYou can search for published images with the docker search command. An example of searching the image of CentOS is here.<\/p>\n<p># docker search centos<\/p>\n<p>INDEX\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 NAME\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 DESCRIPTION\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 STARS\u00a0\u00a0\u00a0\u00a0 OFFICIAL\u00a0\u00a0 AUTOMATED<br \/>\ndocker.io\u00a0\u00a0 docker.io\/centos\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 The official build of CentOS.\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 1842\u00a0\u00a0\u00a0\u00a0\u00a0 [OK]<br \/>\ndocker.io\u00a0\u00a0 docker.io\/ansible\/centos7-ansible\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Ansible on Centos7\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 63\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 [OK]<br \/>\ndocker.io\u00a0\u00a0 docker.io\/jdeathe\/centos-ssh\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 CentOS-6 6.7 x86_64 \/ EPEL\/IUS Repos \/ Ope&#8230;\u00a0\u00a0 14\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 [OK]<br \/>\ndocker.io\u00a0\u00a0 docker.io\/jdeathe\/centos-ssh-apache-php\u00a0\u00a0 CentOS-6 6.7 x86_64 \/ Apache \/ PHP \/ PHP M&#8230;\u00a0\u00a0 11\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 [OK]<br \/>\ndocker.io\u00a0\u00a0 docker.io\/million12\/centos-supervisor\u00a0\u00a0\u00a0\u00a0 Base CentOS-7 with supervisord launcher, h&#8230;\u00a0\u00a0 9\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 [OK]<br \/>\ndocker.io\u00a0\u00a0 docker.io\/blalor\/centos\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Bare-bones base CentOS 6.5 image\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 8\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 [OK]<br \/>\ndocker.io\u00a0\u00a0 docker.io\/nimmis\/java-centos\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 This is docker images of CentOS 7 with dif&#8230;\u00a0\u00a0 7\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 [OK]<br \/>\ndocker.io\u00a0\u00a0 docker.io\/torusware\/speedus-centos\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Always updated official CentOS docker imag&#8230;\u00a0\u00a0 7\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 [OK]<br \/>\ndocker.io\u00a0\u00a0 docker.io\/consol\/centos-xfce-vnc\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Centos container with &#8220;headless&#8221; VNC sessi&#8230;\u00a0\u00a0 5\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 [OK]<br \/>\ndocker.io\u00a0\u00a0 docker.io\/jdeathe\/centos-ssh-mysql\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 CentOS-6 6.7 x86_64 \/ MySQL.\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 4\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 [OK]<br \/>\ndocker.io\u00a0\u00a0 docker.io\/nathonfowlie\/centos-jre\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Latest CentOS image with the JRE pre-insta&#8230;\u00a0\u00a0 3\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 [OK]<br \/>\ndocker.io\u00a0\u00a0 docker.io\/centos\/mariadb55-centos7\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 2\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 [OK]<br \/>\ndocker.io\u00a0\u00a0 docker.io\/nickistre\/centos-lamp\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 LAMP on centos setup\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 2\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 [OK]<br \/>\ndocker.io\u00a0\u00a0 docker.io\/feduxorg\/centos-postgresql\u00a0\u00a0\u00a0\u00a0\u00a0 Centos Image with postgres\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 [OK]<br \/>\ndocker.io\u00a0\u00a0 docker.io\/layerworx\/centos\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 CentOS container with etcd, etcdctl, confd&#8230;\u00a0\u00a0 1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 [OK]<br \/>\ndocker.io\u00a0\u00a0 docker.io\/lighthopper\/orientdb-centos\u00a0\u00a0\u00a0\u00a0 A Dockerfile for creating an OrientDB imag&#8230;\u00a0\u00a0 1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 [OK]<br \/>\ndocker.io\u00a0\u00a0 docker.io\/nathonfowlie\/centos-jira\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 JIRA running on the latest version of CentOS\u00a0\u00a0\u00a0 1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 [OK]<br \/>\ndocker.io\u00a0\u00a0 docker.io\/softvisio\/centos\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Centos\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 [OK]<br \/>\ndocker.io\u00a0\u00a0 docker.io\/yajo\/centos-epel\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 CentOS with EPEL and fully updated\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 [OK]<br \/>\ndocker.io\u00a0\u00a0 docker.io\/blacklabelops\/centos\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Blacklabelops Centos 7 base image without &#8230;\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 [OK]<br \/>\ndocker.io\u00a0\u00a0 docker.io\/januswel\/centos\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 yum update-ed CentOS image\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 [OK]<br \/>\ndocker.io\u00a0\u00a0 docker.io\/jsmigel\/centos-epel\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Docker base image of CentOS w\/ EPEL installed\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 [OK]<br \/>\ndocker.io\u00a0\u00a0 docker.io\/lighthopper\/openjdk-centos\u00a0\u00a0\u00a0\u00a0\u00a0 A Dockerfile for creating an OpenJDK image&#8230;\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 [OK]<br \/>\ndocker.io\u00a0\u00a0 docker.io\/pdericson\/centos\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Docker image for CentOS\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 [OK]<br \/>\ndocker.io\u00a0\u00a0 docker.io\/timhughes\/centos\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Centos with systemd installed and running\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 [OK]<\/p>\n<p>Various images are released to various people. What is displayed as &#8220;OK&#8221; in the OFFICIAL column is the official image of CentOS. Several applications that have been installed in advance have been released.<br \/>\nTo download the Docker image, use the docker pull command. An example of execution when downloading the image of CentOS 7 is here.<\/p>\n<p># docker pull centos<\/p>\n<p>Using default tag: latest<br \/>\nTrying to pull repository docker.io\/library\/centos &#8230; latest: Pulling from library\/centos<br \/>\n47d44cb6f252: Pull complete<br \/>\n838c1c5c4f83: Pull complete<br \/>\n5764f0a31317: Pull complete<br \/>\n60e65a8e4030: Pull complete<br \/>\nlibrary\/centos:latest: The image you are pulling has been verified. Important: image verification is a tech preview feature and should not be relied on to provide security.<br \/>\nDigest: sha256:8072bc7c66c3d5b633c3fddfc2bf12d5b4c2623f7004d9eed6aae70e0e99fbd7<br \/>\nStatus: Downloaded newer image for docker.io\/centos:latest<\/p>\n<p>As in this example, several images are downloaded in batches. You can check downloaded images as follows.<\/p>\n<p># docker images<\/p>\n<p>REPOSITORY\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 TAG\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 IMAGE ID\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 CREATED\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 VIRTUAL SIZE<br \/>\n?docker.io\/centos\u00a0\u00a0\u00a0 latest\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 60e65a8e4030\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 3 weeks ago\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 196.6 MB<br \/>\n?<\/p>\n<p>The Docker image is specified by separating the repository and the tag with &#8220;:&#8221;. For example, the image of CentOS 7 in ? is used under the name docker.io \/ centos: latest.<br \/>\nCreate Container<\/p>\n<p>Invoking a container refers to starting a process on this image. Docker expands the specified image and uses it as a container file system set.<br \/>\nTo create a container, use the docker run command. We use it in the following<\/p>\n<p>docker run [&lt;options&gt;] &lt;image&gt; &lt;command&gt; [&lt;arg&gt;]<\/p>\n<p>Specify the image to be used with the command to move on the image and its argument with and.<\/p>\n<p>Here is the command to create a container named &#8220;centos7&#8221; that starts bash with the image docker.io \/centos:latest.<\/p>\n<p># docker run -it &#8211;name centos7 docker.io\/centos:latest \/bin\/bash<\/p>\n<p>[root@b18de31e55ec \/]#ls<br \/>\nanaconda-post.log\u00a0 bin\u00a0 dev\u00a0 etc\u00a0 home\u00a0 lib\u00a0 lib64\u00a0 lost+found\u00a0 media\u00a0 mnt\u00a0 opt\u00a0 proc\u00a0 root\u00a0 run\u00a0 sbin\u00a0 srv\u00a0 sys\u00a0 tmp\u00a0 usr\u00a0 var<\/p>\n<p>In this example, docker run is appended with &#8220;-it&#8221; as an option. This is a designation of assigning TTY (terminal \u00b7 console) in interactive mode.<br \/>\nYou can execute the ls command etc. in the started container. Of course you can also use vi etc. to modify the file.<br \/>\nThe container will only run while the started \/bin\/bash process is running. That is, the container stops when you exit this shell.<\/p>\n<p>\u00b7 Container stop<\/p>\n<p>[root@b18de31e55ec \/]# exit<\/p>\n<p>If you want to return the operation to the original shell without stopping the container, you can exit the container&#8217;s TTY with Ctrl-P + Ctrl-q.<br \/>\nReconnect to container<\/p>\n<p># docker attach centos7<\/p>\n<p>[root@b18de31e55ec \/]#<\/p>\n<p>[root@b18de31e55ec \/]# ls<br \/>\nanaconda-post.log\u00a0 bin\u00a0 dev\u00a0 etc\u00a0 home\u00a0 lib\u00a0 lib64\u00a0 lost+found\u00a0 media\u00a0 mnt\u00a0 opt\u00a0 proc\u00a0 root\u00a0 run\u00a0 sbin\u00a0 srv\u00a0 sys\u00a0 tmp\u00a0 usr\u00a0 var<\/p>\n<p>To connect to a running container, execute the docker attach command with the container name as follows.<\/p>\n<p>Confirming Container in Operation<\/p>\n<p>To check the active container, use the docker ps command.<\/p>\n<p># docker ps<br \/>\nCONTAINER ID\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 IMAGE\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 COMMAND\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 CREATED\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 STATUS\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 PORTS\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 NAMES<br \/>\nb18de31e55ec\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 docker.io\/centos:latest\u00a0\u00a0 &#8220;\/bin\/bash&#8221;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 9 minutes ago\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Up 9 minutes\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 centos7<\/p>\n<p># docker ps -a<br \/>\n8cc776959b0f\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 docker.io\/centos:latest\u00a0\u00a0 &#8220;\/bin\/bash&#8221;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 5 seconds ago\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Exited (0) 1 seconds ago\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 centos7a<br \/>\nb18de31e55ec\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 docker.io\/centos:latest\u00a0\u00a0 &#8220;\/bin\/bash&#8221;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 14 minutes ago\u00a0\u00a0\u00a0\u00a0\u00a0 Up 14 minutes\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 centos7<\/p>\n<p>Confirm container information<\/p>\n<p>If you want to know the detailed state of the container of Docker, use docker inspect.<br \/>\nYou can check the process specified when starting Docker, the resources allocated to the container, and so on.<\/p>\n<p># docker inspect centos7<br \/>\n[<br \/>\n{<br \/>\n&#8220;Id&#8221;: &#8220;b18de31e55ec5c02721193fab1d815f9b5fd3d32eebad4b86330b792a5ce2c0a&#8221;,<br \/>\n&#8220;Created&#8221;: &#8220;2016-01-19T11:17:47.272087891Z&#8221;,<br \/>\n&#8220;Path&#8221;: &#8220;\/bin\/bash&#8221;,<br \/>\n&#8220;Args&#8221;: [],<br \/>\n&#8220;State&#8221;: {<br \/>\n&#8220;Running&#8221;: true,<br \/>\n&#8220;Paused&#8221;: false,<br \/>\n&#8220;Restarting&#8221;: false,<br \/>\n&#8220;OOMKilled&#8221;: false,<br \/>\n&#8220;Dead&#8221;: false,<br \/>\n&#8220;Pid&#8221;: 2563,<br \/>\n&#8220;ExitCode&#8221;: 0,<br \/>\n&#8220;Error&#8221;: &#8220;&#8221;,<br \/>\n&#8220;StartedAt&#8221;: &#8220;2016-01-19T11:17:47.685386072Z&#8221;,<br \/>\n&#8220;FinishedAt&#8221;: &#8220;0001-01-01T00:00:00Z&#8221;<br \/>\n},<br \/>\n&#8220;Image&#8221;: &#8220;60e65a8e4030022260a4f84166814b2683e1cdfc9725a9c262e90ba9c5ae2332&#8221;,<br \/>\n&#8220;NetworkSettings&#8221;: {<br \/>\n&#8220;Bridge&#8221;: &#8220;&#8221;,<br \/>\n&#8220;EndpointID&#8221;: &#8220;4aeb09fdcce86c3d8c76115f222657844dc4fa7ca0d56d8b997e6d1708d42717&#8221;,<br \/>\n&#8220;Gateway&#8221;: &#8220;172.17.42.1&#8221;,<br \/>\n&#8220;GlobalIPv6Address&#8221;: &#8220;&#8221;,<br \/>\n&#8220;GlobalIPv6PrefixLen&#8221;: 0,<br \/>\n&#8220;HairpinMode&#8221;: false,<br \/>\n&#8220;IPAddress&#8221;: &#8220;172.17.0.1&#8221;,<br \/>\n&#8220;IPPrefixLen&#8221;: 16,<br \/>\n&#8220;IPv6Gateway&#8221;: &#8220;&#8221;,<br \/>\n&#8220;LinkLocalIPv6Address&#8221;: &#8220;&#8221;,<br \/>\n&#8220;LinkLocalIPv6PrefixLen&#8221;: 0,<br \/>\n&#8220;MacAddress&#8221;: &#8220;02:42:ac:11:00:01&#8221;,<br \/>\n&#8220;NetworkID&#8221;: &#8220;b1d897f4c186fdaffcebd0ed10a57721ed871efad61bba223f74d362ddd47b31&#8221;,<br \/>\n&#8220;PortMapping&#8221;: null,<br \/>\n&#8220;Ports&#8221;: {},<br \/>\n&#8220;SandboxKey&#8221;: &#8220;\/var\/run\/docker\/netns\/b18de31e55ec&#8221;,<br \/>\n&#8220;SecondaryIPAddresses&#8221;: null,<br \/>\n&#8220;SecondaryIPv6Addresses&#8221;: null<br \/>\n},<br \/>\n&#8220;ResolvConfPath&#8221;: &#8220;\/var\/lib\/docker\/containers\/b18de31e55ec5c02721193fab1d815f9b5fd3d32eebad4b86330b792a5ce2c0a\/resolv.conf&#8221;,<br \/>\n&#8220;HostnamePath&#8221;: &#8220;\/var\/lib\/docker\/containers\/b18de31e55ec5c02721193fab1d815f9b5fd3d32eebad4b86330b792a5ce2c0a\/hostname&#8221;,<br \/>\n&#8220;HostsPath&#8221;: &#8220;\/var\/lib\/docker\/containers\/b18de31e55ec5c02721193fab1d815f9b5fd3d32eebad4b86330b792a5ce2c0a\/hosts&#8221;,<br \/>\n&#8220;LogPath&#8221;: &#8220;\/var\/lib\/docker\/containers\/b18de31e55ec5c02721193fab1d815f9b5fd3d32eebad4b86330b792a5ce2c0a\/b18de31e55ec5c02721193fab1d815f9b5fd3d32eebad4b86330b792a5ce2c0a-json.log&#8221;,<br \/>\n&#8220;Name&#8221;: &#8220;\/centos7&#8221;,<br \/>\n&#8220;RestartCount&#8221;: 0,<br \/>\n&#8220;Driver&#8221;: &#8220;devicemapper&#8221;,<br \/>\n&#8220;ExecDriver&#8221;: &#8220;native-0.2&#8221;,<br \/>\n&#8220;MountLabel&#8221;: &#8220;&#8221;,<br \/>\n&#8220;ProcessLabel&#8221;: &#8220;&#8221;,<br \/>\n&#8220;AppArmorProfile&#8221;: &#8220;&#8221;,<br \/>\n&#8220;ExecIDs&#8221;: null,<br \/>\n&#8220;HostConfig&#8221;: {<br \/>\n&#8220;Binds&#8221;: null,<br \/>\n&#8220;ContainerIDFile&#8221;: &#8220;&#8221;,<br \/>\n&#8220;LxcConf&#8221;: [],<br \/>\n&#8220;Memory&#8221;: 0,<br \/>\n&#8220;MemorySwap&#8221;: 0,<br \/>\n&#8220;CpuShares&#8221;: 0,<br \/>\n&#8220;CpuPeriod&#8221;: 0,<br \/>\n&#8220;CpusetCpus&#8221;: &#8220;&#8221;,<br \/>\n&#8220;CpusetMems&#8221;: &#8220;&#8221;,<br \/>\n&#8220;CpuQuota&#8221;: 0,<br \/>\n&#8220;BlkioWeight&#8221;: 0,<br \/>\n&#8220;OomKillDisable&#8221;: false,<br \/>\n&#8220;MemorySwappiness&#8221;: -1,<br \/>\n&#8220;Privileged&#8221;: false,<br \/>\n&#8220;PortBindings&#8221;: {},<br \/>\n&#8220;Links&#8221;: null,<br \/>\n&#8220;PublishAllPorts&#8221;: false,<br \/>\n&#8220;Dns&#8221;: null,<br \/>\n&#8220;DnsSearch&#8221;: null,<br \/>\n&#8220;ExtraHosts&#8221;: null,<br \/>\n&#8220;VolumesFrom&#8221;: null,<br \/>\n&#8220;Devices&#8221;: [],<br \/>\n&#8220;NetworkMode&#8221;: &#8220;default&#8221;,<br \/>\n&#8220;IpcMode&#8221;: &#8220;&#8221;,<br \/>\n&#8220;PidMode&#8221;: &#8220;&#8221;,<br \/>\n&#8220;UTSMode&#8221;: &#8220;&#8221;,<br \/>\n&#8220;CapAdd&#8221;: null,<br \/>\n&#8220;CapDrop&#8221;: null,<br \/>\n&#8220;GroupAdd&#8221;: null,<br \/>\n&#8220;RestartPolicy&#8221;: {<br \/>\n&#8220;Name&#8221;: &#8220;no&#8221;,<br \/>\n&#8220;MaximumRetryCount&#8221;: 0<br \/>\n},<br \/>\n&#8220;SecurityOpt&#8221;: null,<br \/>\n&#8220;ReadonlyRootfs&#8221;: false,<br \/>\n&#8220;Ulimits&#8221;: null,<br \/>\n&#8220;LogConfig&#8221;: {<br \/>\n&#8220;Type&#8221;: &#8220;json-file&#8221;,<br \/>\n&#8220;Config&#8221;: {}<br \/>\n},<br \/>\n&#8220;CgroupParent&#8221;: &#8220;&#8221;,<br \/>\n&#8220;ConsoleSize&#8221;: [<br \/>\n0,<br \/>\n0<br \/>\n]<br \/>\n},<br \/>\n&#8220;GraphDriver&#8221;: {<br \/>\n&#8220;Name&#8221;: &#8220;devicemapper&#8221;,<br \/>\n&#8220;Data&#8221;: {<br \/>\n&#8220;DeviceId&#8221;: &#8220;7&#8221;,<br \/>\n&#8220;DeviceName&#8221;: &#8220;docker-253:1-67259332-b18de31e55ec5c02721193fab1d815f9b5fd3d32eebad4b86330b792a5ce2c0a&#8221;,<br \/>\n&#8220;DeviceSize&#8221;: &#8220;107374182400&#8221;<br \/>\n}<br \/>\n},<br \/>\n&#8220;Mounts&#8221;: [],<br \/>\n&#8220;Config&#8221;: {<br \/>\n&#8220;Hostname&#8221;: &#8220;b18de31e55ec&#8221;,<br \/>\n&#8220;Domainname&#8221;: &#8220;&#8221;,<br \/>\n&#8220;User&#8221;: &#8220;&#8221;,<br \/>\n&#8220;AttachStdin&#8221;: true,<br \/>\n&#8220;AttachStdout&#8221;: true,<br \/>\n&#8220;AttachStderr&#8221;: true,<br \/>\n&#8220;ExposedPorts&#8221;: null,<br \/>\n&#8220;PublishService&#8221;: &#8220;&#8221;,<br \/>\n&#8220;Tty&#8221;: true,<br \/>\n&#8220;OpenStdin&#8221;: true,<br \/>\n&#8220;StdinOnce&#8221;: true,<br \/>\n&#8220;Env&#8221;: null,<br \/>\n&#8220;Cmd&#8221;: [<br \/>\n&#8220;\/bin\/bash&#8221;<br \/>\n],<br \/>\n&#8220;Image&#8221;: &#8220;docker.io\/centos:latest&#8221;,<br \/>\n&#8220;Volumes&#8221;: null,<br \/>\n&#8220;VolumeDriver&#8221;: &#8220;&#8221;,<br \/>\n&#8220;WorkingDir&#8221;: &#8220;&#8221;,<br \/>\n&#8220;Entrypoint&#8221;: null,<br \/>\n&#8220;NetworkDisabled&#8221;: false,<br \/>\n&#8220;MacAddress&#8221;: &#8220;&#8221;,<br \/>\n&#8220;OnBuild&#8221;: null,<br \/>\n&#8220;Labels&#8221;: {}<br \/>\n}<br \/>\n}<br \/>\n]<\/p>\n<p>Container stopped<\/p>\n<p>You can also stop running containers from the host side. Execute the following docker stop command with the container name specified.<\/p>\n<p># docker stop centos7<br \/>\ncentos7<\/p>\n<p>When this process is executed, TERM signal and KILL signal are sent to the container process. In other words, it will kill the container process.<br \/>\nLaunch container<\/p>\n<p>You can also move the suspended container again. Execute the docker start command with the container name as follows.<\/p>\n<p>docker start centos7<\/p>\n<p>centos7<\/p>\n<p>Restart container<\/p>\n<p>To restart a running container, use the docker restart command. When this command is executed, the process of the container is forcibly terminated and restarted.<\/p>\n<p># docker restart centos7<br \/>\ncentos7<\/p>\n<p>Container commit<\/p>\n<p>Even if you edit a file in a container, deleting all the containers will delete the changes. However, you can store the state of the container as a new image.<br \/>\nStorage is done with the docker commit.<br \/>\nDocker commit saves the container in the specified local repository. Tags can also be specified. In addition, you can attach a creator with the -a option and a message with the -m option.<br \/>\nHere is an example of storing a container called centos7 in a repository named localrepo.<\/p>\n<p># docker commit -a Mohan Ramadoss -m &#8220;CentOS 7 test image&#8221; centos7 localrepo:test<br \/>\n32f79088593dc06e79c3fed9e0732ec7a35f179034e6faf3f4b11db906fee925<\/p>\n<p># docker images localrepo<br \/>\nREPOSITORY\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 TAG\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 IMAGE ID\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 CREATED\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 VIRTUAL SIZE<br \/>\nlocalrepo\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 test\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 32f79088593d\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 15 seconds ago\u00a0\u00a0\u00a0\u00a0\u00a0 196.6 MB<\/p>\n<p>Delete Container<\/p>\n<p>To delete the container you created, use docker rm.<br \/>\nIf you delete a container, all the files created inside the container will be destroyed, so you need to save it as a new image with docker commit beforehand if storage is necessary.<\/p>\n<p># docker rm -f centos7<br \/>\ncentos7<\/p>\n<p>docker rm -f cents7<\/p>\n<p>Containerization of application environment and disclosure of services<\/p>\n<p>Docker can manage images with a much smaller size than virtual machines such as KVM. Therefore, you can save the execution environment of the application, applications and contents together as a Docker image, and can also perform version management and so on.<br \/>\nWe will explain containerization of the application environment and disclosure of the service using an example of building a WWW server and contents environment on the Docker container.<\/p>\n<p>In addition, we will create it in the following procedure.<br \/>\n(1) Create a container to be the source of the WWW server<br \/>\n(2) Set up the WWW server<br \/>\n(3) Placing WWW contents<br \/>\n(4) Save the image (Containerized)<br \/>\n(5) Create a new container with the saved image and check the operation<br \/>\n(6) Publication of container service<\/p>\n<p>In future examples of execution there are things to run on containers and things to run on hosts. Because it is confusing, specify what you should run on the host side (on the host) and what you should do on the container are (on the container).<\/p>\n<p>(1) Create a container to be the source of the WWW server<\/p>\n<p>First, create a container that will be the source of the WWW server. Launch \/ bin \/ bash using the official image of centos7. At this time, share the volume to pass the WWW contents from the host. Share the directory containing the WWW contents (\/ home \/ admin \/ html in this case)<\/p>\n<p># docker run -it &#8211;name webserver-devel &#8211;volume=\/home\/admin\/html:\/mnt centos:7 \/bin\/bash<\/p>\n<p>Unable to find image &#8216;centos:7&#8217; locally<br \/>\nTrying to pull repository docker.io\/library\/centos &#8230; 7: Pulling from library\/centos<br \/>\nf5079557f135: Pull complete<br \/>\n42c2aa730369: Pull complete<br \/>\n0e0217391d41: Pull complete<br \/>\n47d44cb6f252: Already exists<br \/>\nlibrary\/centos:7: The image you are pulling has been verified. Important: image verification is a tech preview feature and should not be relied on to provide security.<br \/>\nDigest: sha256:8dcd2ec6183f3f4a94d4f9552ce76091624760edefcaa39a9e04441f9e2ad9f6<br \/>\nStatus: Downloaded newer image for docker.io\/centos:7<\/p>\n<p>Explanation about mounting the host volume<\/p>\n<p>We are mounting the host&#8217;s volume (\/home\/admin\/html) to \/mnt of the container using the -volume option. Mounting the host volume can be used for the following applications.<\/p>\n<p>Passing files from the host to the container<br \/>\nSharing files among containers<br \/>\nStoring Container Data<\/p>\n<p>Files created with containers are deleted when the container is deleted, but if you change the file in the mounted area, it will be reflected on the host side as it is.<\/p>\n<p>(2) Set up the WWW server<\/p>\n<p>Install the WWW server in the created container.<\/p>\n<p>[root@168f748a722c \/]# yum install httpd<br \/>\nLoaded plugins: fastestmirror, ovl<br \/>\nbase\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 | 3.6 kB\u00a0 00:00:00<br \/>\nextras\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 | 3.4 kB\u00a0 00:00:00<br \/>\nupdates\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 | 3.4 kB\u00a0 00:00:00<br \/>\n(1\/4): base\/7\/x86_64\/group_gz\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 | 155 kB\u00a0 00:00:00<br \/>\n(2\/4): extras\/7\/x86_64\/primary_db\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 | 101 kB\u00a0 00:00:00<br \/>\n(3\/4): base\/7\/x86_64\/primary_db\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 | 5.3 MB\u00a0 00:00:00<br \/>\n(4\/4): updates\/7\/x86_64\/primary_db\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 | 3.1 MB\u00a0 00:00:06<br \/>\nDetermining fastest mirrors<br \/>\n* base: ftp.iij.ad.jp<br \/>\n* extras: ftp.iij.ad.jp<br \/>\n* updates: ftp.iij.ad.jp<br \/>\nResolving Dependencies<br \/>\n&#8211;&gt; Running transaction check<br \/>\n&#8212;&gt; Package httpd.x86_64 0:2.4.6-40.el7.centos will be installed<br \/>\n&#8211;&gt; Processing Dependency: httpd-tools = 2.4.6-40.el7.centos for package: httpd-2.4.6-40.el7.centos.x86_64<br \/>\n&#8211;&gt; Processing Dependency: system-logos &gt;= 7.92.1-1 for package: httpd-2.4.6-40.el7.centos.x86_64<br \/>\n&#8211;&gt; Processing Dependency: \/etc\/mime.types for package: httpd-2.4.6-40.el7.centos.x86_64<br \/>\n&#8211;&gt; Processing Dependency: libaprutil-1.so.0()(64bit) for package: httpd-2.4.6-40.el7.centos.x86_64<br \/>\n&#8211;&gt; Processing Dependency: libapr-1.so.0()(64bit) for package: httpd-2.4.6-40.el7.centos.x86_64<br \/>\n&#8211;&gt; Running transaction check<br \/>\n&#8212;&gt; Package apr.x86_64 0:1.4.8-3.el7 will be installed<br \/>\n&#8212;&gt; Package apr-util.x86_64 0:1.5.2-6.el7 will be installed<br \/>\n&#8212;&gt; Package centos-logos.noarch 0:70.0.6-3.el7.centos will be installed<br \/>\n&#8212;&gt; Package httpd-tools.x86_64 0:2.4.6-40.el7.centos will be installed<br \/>\n&#8212;&gt; Package mailcap.noarch 0:2.1.41-2.el7 will be installed<br \/>\n&#8211;&gt; Finished Dependency Resolution<\/p>\n<p>Dependencies Resolved<\/p>\n<p>==========================================================================================================================================<br \/>\nPackage\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Arch\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Version\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Repository\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Size<br \/>\n==========================================================================================================================================<br \/>\nInstalling:<br \/>\nhttpd\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 x86_64\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 2.4.6-40.el7.centos\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 base\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 2.7 M<br \/>\nInstalling for dependencies:<br \/>\napr\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 x86_64\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 1.4.8-3.el7\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 base\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 103 k<br \/>\napr-util\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 x86_64\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 1.5.2-6.el7\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 base\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 92 k<br \/>\ncentos-logos\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 noarch\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 70.0.6-3.el7.centos\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 base\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 21 M<br \/>\nhttpd-tools\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 x86_64\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 2.4.6-40.el7.centos\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 base\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 82 k<br \/>\nmailcap\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 noarch\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 2.1.41-2.el7\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 base\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 31 k<\/p>\n<p>Transaction Summary<br \/>\n==========================================================================================================================================<br \/>\nInstall\u00a0 1 Package (+5 Dependent packages)<\/p>\n<p>Total download size: 24 M<br \/>\nInstalled size: 31 M<br \/>\nIs this ok [y\/d\/N]: y<br \/>\nDownloading packages:<br \/>\nwarning: \/var\/cache\/yum\/x86_64\/7\/base\/packages\/apr-util-1.5.2-6.el7.x86_64.rpm: Header V3 RSA\/SHA256 Signature, key ID f4a80eb5: NOKEY<br \/>\nPublic key for apr-util-1.5.2-6.el7.x86_64.rpm is not installed<br \/>\n(1\/6): apr-util-1.5.2-6.el7.x86_64.rpm\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 |\u00a0 92 kB\u00a0 00:00:00<br \/>\n(2\/6): apr-1.4.8-3.el7.x86_64.rpm\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 | 103 kB\u00a0 00:00:00<br \/>\n(3\/6): httpd-2.4.6-40.el7.centos.x86_64.rpm\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 | 2.7 MB\u00a0 00:00:00<br \/>\n(4\/6): httpd-tools-2.4.6-40.el7.centos.x86_64.rpm\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 |\u00a0 82 kB\u00a0 00:00:00<br \/>\n(5\/6): mailcap-2.1.41-2.el7.noarch.rpm\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 |\u00a0 31 kB\u00a0 00:00:00<br \/>\n(6\/6): centos-logos-70.0.6-3.el7.centos.noarch.rpm\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 |\u00a0 21 MB\u00a0 00:00:02<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\nTotal\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 7.7 MB\/s |\u00a0 24 MB\u00a0 00:00:03<br \/>\nRetrieving key from file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-CentOS-7<br \/>\nImporting GPG key 0xF4A80EB5:<br \/>\nUserid\u00a0\u00a0\u00a0\u00a0 : &#8220;CentOS-7 Key (CentOS 7 Official Signing Key) &lt;security@centos.org&gt;&#8221;<br \/>\nFingerprint: 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5<br \/>\nPackage\u00a0\u00a0\u00a0 : centos-release-7-2.1511.el7.centos.2.10.x86_64 (@CentOS)<br \/>\nFrom\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 : \/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-CentOS-7<\/p>\n<p>Is this ok [y\/N]: y<br \/>\nRunning transaction check<br \/>\nRunning transaction test<br \/>\nTransaction test succeeded<br \/>\nRunning transaction<br \/>\nInstalling : apr-1.4.8-3.el7.x86_64\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 1\/6<br \/>\nInstalling : apr-util-1.5.2-6.el7.x86_64\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 2\/6<br \/>\nInstalling : httpd-tools-2.4.6-40.el7.centos.x86_64\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 3\/6<br \/>\nInstalling : centos-logos-70.0.6-3.el7.centos.noarch\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 4\/6<br \/>\nInstalling : mailcap-2.1.41-2.el7.noarch\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 5\/6<br \/>\nInstalling : httpd-2.4.6-40.el7.centos.x86_64\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 6\/6<br \/>\nVerifying\u00a0 : httpd-2.4.6-40.el7.centos.x86_64\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 1\/6<br \/>\nVerifying\u00a0 : httpd-tools-2.4.6-40.el7.centos.x86_64\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 2\/6<br \/>\nVerifying\u00a0 : apr-1.4.8-3.el7.x86_64\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 3\/6<br \/>\nVerifying\u00a0 : mailcap-2.1.41-2.el7.noarch\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 4\/6<br \/>\nVerifying\u00a0 : apr-util-1.5.2-6.el7.x86_64\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 5\/6<br \/>\nVerifying\u00a0 : centos-logos-70.0.6-3.el7.centos.noarch\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 6\/6<\/p>\n<p>Installed:<br \/>\nhttpd.x86_64 0:2.4.6-40.el7.centos<\/p>\n<p>Dependency Installed:<br \/>\napr.x86_64 0:1.4.8-3.el7\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 apr-util.x86_64 0:1.5.2-6.el7\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 centos-logos.noarch 0:70.0.6-3.el7.centos<br \/>\nhttpd-tools.x86_64 0:2.4.6-40.el7.centos\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 mailcap.noarch 0:2.1.41-2.el7<\/p>\n<p>Complete!<\/p>\n<p>[root@168f748a722c \/]# cp -a \/etc\/httpd\/conf\/httpd.conf \/etc\/httpd\/conf\/httpd.conf_org<br \/>\n[root@168f748a722c \/]# vi \/etc\/httpd\/conf\/httpd.conf<\/p>\n<p>3) Placing WWW contents<\/p>\n<p>Place the WWW contents in the Docker container. Copy the file from the host volume mounted at \/ mnt. However, it is impossible to access the file with the limitation of SELinux under normal conditions.<br \/>\n(This can also be said to prevent containers from adversely affecting hosts). Therefore, we first change the content text temporarily on the host side.<\/p>\n<p># chcon -R system_u:object_r:docker_var_lib_t:s0 \/home\/admin\/html<\/p>\n<p># vi \/home\/admin\/html\/index.html<br \/>\ntest<\/p>\n<p>Copy it to the appropriate directory in the Docker container.<\/p>\n<p>[root@168f748a722c]# cp -rp \/mnt\/* \/var\/www\/html\/<\/p>\n<p>restorecon -R \/home\/admin\/html<\/p>\n<p>(4) Save the image (Containerized)<\/p>\n<p>When the setting of the WWW server is finished and the contents are placed, the container is stopped and docker commit is executed on the host side to save the image of the container.<\/p>\n<p>[root@168f748a722c]# exit<\/p>\n<p># docker commit -a Mohan -m &#8220;CentOS 7 webserver&#8221; webserver-devel localrepo:webserver-1<br \/>\n3e8ac2d724a929d2696a796ac6a9a06e90cfe847bc106f93c11ff6bfa874fc52<\/p>\n<p># docker rm webserver-devel<br \/>\nwebserver-devel<\/p>\n<p>(5) Create a new container with the saved image and check the operation.<\/p>\n<p>Using the saved image, create a container for the WWW server for operation check.<br \/>\nIn this container, start up the WWW server (\/usr\/sbin\/httpd).<\/p>\n<p># docker rm webserver-devel<br \/>\nwebserver-devel<\/p>\n<p># docker run -d &#8211;name webserver &#8211;expose=80 localrepo:webserver-1 \/usr\/sbin\/httpd -D FOREGROUND<br \/>\n09a84be4de6be2a33831a338ebd780cf1c582be3c999aa8b1ee8ea928da31665<\/p>\n<p>The WWW server should now be running on the container. In this state, access the 80 port of the container from the host and check the operation.<\/p>\n<p>\u00b7 IP address survey<br \/>\nThe IP address assigned to the container can be checked with docker inspect.<\/p>\n<p># docker inspect webserver | grep -i addres<\/p>\n<p>&#8220;IPAddress&#8221;: &#8220;172.17.0.4&#8221;,<\/p>\n<p># ping 172.17.0.4<br \/>\nPING 172.17.0.4 (172.17.0.4) 56(84) bytes of data.<br \/>\n64 bytes from 172.17.0.4: icmp_seq=1 ttl=64 time=0.098 ms<br \/>\n64 bytes from 172.17.0.4: icmp_seq=2 ttl=64 time=0.196 ms<br \/>\n^C<br \/>\n&#8212; 172.17.0.4 ping statistics &#8212;<br \/>\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms<br \/>\nrtt min\/avg\/max\/mdev = 0.098\/0.147\/0.196\/0.049 ms<\/p>\n<p># nmap 172.17.0.4<br \/>\nStarting Nmap 6.40 ( http:\/\/nmap.org ) at 2016-02-23 10:31 JST<br \/>\nNmap scan report for 172.17.0.4<br \/>\nHost is up (0.0000090s latency).<br \/>\nNot shown: 999 closed ports<br \/>\nPORT\u00a0\u00a0 STATE SERVICE<br \/>\n80\/tcp open\u00a0 http<\/p>\n<p>Nmap done: 1 IP address (1 host up) scanned in 0.12 seconds<\/p>\n<p>(6) Publication of container service<\/p>\n<p>If there is no problem by checking the operation, you can publish the container service to the outside. We will terminate the container once and delete it.<\/p>\n<p># docker rm -f webserver<br \/>\nwebserver<\/p>\n<p>Next, create a container of an official WWW server. At this time, connect the port of the host and the port of the container with -publish.<br \/>\nBy doing this, you can connect to the WWW server of the container from the outside through host port 80.<\/p>\n<p># docker run -d &#8211;name webserver &#8211;expose=80 &#8211;publish 80:80 localrepo:webserver-1 \/usr\/sbin\/httpd -D FOREGROUND<br \/>\n9daf1f23ca7cf7c2fcbf9c571f7b714f7e1b3b29948dc16cb5983823a5c5f19c<\/p>\n<p>Summary<\/p>\n<p>What did you think?<\/p>\n<p>If you actually start using Docker, you can think of it as a test environment. It is to make the best use of Docker&#8217;s taste while suppressing risk. It is possible to easily return to the original environment by first constructing the setting necessary for testing and saving it as a Docker image.<\/p>\n<p>And as a next step, we recommend using Docker for development environment. As errors do not occur depending on the environment, for example, if an external company is added to the development team, as long as the development environment can be distributed as a state (container) that can be distributed, the time to get development to start It should be saved.<\/p>\n<p>As a final step, it may be possible to use WEB service etc. as the actual environment introduced this time. You can take advantage of the light operation, you can restore every environment when you need it again by imaging the container and saving it when the publication period is over.<\/p>\n<p>Given these advantages, it should be worth considering the introduction of Docker, so I&#8217;d appreciate it if you touch Docker with reference to this article.<\/p>\n<p>Well then.<br \/>\nIt will be successful if the contents are displayed by accessing with the browser. (192.168.0.3 is the IP address of the host OS.)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Obtaining the Docker image<\/p>\n<p>First, get the basic Docker image. The Docker image is published on the Docker Hub Registry (https:\/\/hub.docker.com\/). You can search for published images with the docker search command. An example of searching the image of CentOS is here.<\/p>\n<p># docker search centos<\/p>\n<p>INDEX NAME DESCRIPTION STARS OFFICIAL AUTOMATED docker.io docker.io\/centos The [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[82],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6580"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6580"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6580\/revisions"}],"predecessor-version":[{"id":6581,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6580\/revisions\/6581"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6580"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6580"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6580"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}