Docker入門

Add1036688abcb2e3dbff7c3090f7e35?s=47 imtnd
April 24, 2016

 Docker入門

NaITE 13回目勉強会 Docker入門 資料

Add1036688abcb2e3dbff7c3090f7e35?s=128

imtnd

April 24, 2016
Tweet

Transcript

  1. 5.
  2. 11.

    DockerͷΠϯετʔϧํ๏ Cent OS 7 Ҏ্ yum ͰΠϯετʔϧՄೳ Ubuntu 15.04 Ҏ্

    ύοέʔδΛ௥Ճͯ͠ɺapt-getͰΠϯε τʔϧՄೳ https://docs.docker.com/engine/installation/linux/ubuntulinux/
  3. 34.

    Dockerfile FROM centos:centos6 MAINTAINER imtnd RUN yum install -y httpd

    ADD index.html /var/www/html/index.html EXPOSE 80/tcp CMD ["/usr/sbin/httpd","-D","FOREGROUND"]
  4. 35.

    Dockerfile FROM centos:centos6 MAINTAINER imtnd RUN yum install -y httpd

    ADD index.html /var/www/html/index.html EXPOSE 80/tcp CMD ["/usr/sbin/httpd","-D","FOREGROUND"] ϕʔεͷDockerΠϝʔδ
  5. 36.

    Dockerfile FROM centos:centos6 MAINTAINER imtnd RUN yum install -y httpd

    ADD index.html /var/www/html/index.html EXPOSE 80/tcp CMD ["/usr/sbin/httpd","-D","FOREGROUND"] DockerΠϝʔδ࡞੒ऀ
  6. 37.

    Dockerfile FROM centos:centos6 MAINTAINER imtnd RUN yum install -y httpd

    ADD index.html /var/www/html/index.html EXPOSE 80/tcp CMD ["/usr/sbin/httpd","-D","FOREGROUND"] ίϚϯυͷ࣮ߦࢦࣔ
  7. 38.

    Dockerfile FROM centos:centos6 MAINTAINER imtnd RUN yum install -y httpd

    ADD index.html /var/www/html/index.html EXPOSE 80/tcp CMD ["/usr/sbin/httpd","-D","FOREGROUND"] ϑΝΠϧͷ௥Ճࢦࣔ
  8. 39.

    Dockerfile FROM centos:centos6 MAINTAINER imtnd RUN yum install -y httpd

    ADD index.html /var/www/html/index.html EXPOSE 80/tcp CMD ["/usr/sbin/httpd","-D","FOREGROUND"] ϙʔτ൪߸ͷొ࿥
  9. 40.

    Dockerfile FROM centos:centos6 MAINTAINER imtnd RUN yum install -y httpd

    ADD index.html /var/www/html/index.html EXPOSE 80/tcp CMD ["/usr/sbin/httpd","-D","FOREGROUND"] ίϯςφىಈ࣌ͷ ࣮ߦίϚϯυࢦࣔ
  10. 44.

    Docker Compose YMLϑΝΠϧΛݩʹαʔϏεΛىಈ ίϯςφͷঢ়ଶ֬ೝ $docker-compose up -d $docker-compose ps ԼهΞυϨεʹϒϥ΢β͔ΒΞΫηϧͰ͖Δ

    http://xxx.xxx.xxx.xxx(ϗετͷIPΞυϨε)/testlink/ ॳظઃఆͳͲ͸ԼهαΠτΛࢀর http://qiita.com/imtnd/items/a58a707db08c3710d963