Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Docker入門

imtnd
April 24, 2016

 Docker入門

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

imtnd

April 24, 2016
Tweet

More Decks by imtnd

Other Decks in Technology

Transcript

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

    ύοέʔδΛ௥Ճͯ͠ɺapt-getͰΠϯε τʔϧՄೳ https://docs.docker.com/engine/installation/linux/ubuntulinux/
  2. 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"]
  3. 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Πϝʔδ
  4. 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. 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"] ίϚϯυͷ࣮ߦࢦࣔ
  6. 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. 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. 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. Docker Compose YMLϑΝΠϧΛݩʹαʔϏεΛىಈ ίϯςφͷঢ়ଶ֬ೝ $docker-compose up -d $docker-compose ps ԼهΞυϨεʹϒϥ΢β͔ΒΞΫηϧͰ͖Δ

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