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

Docker >>= Docker

Docker >>= Docker

LT駆動開発19のスライドです。
https://github.com/LTDD/Sessions/wiki/LT駆動開発19

Docker >>= Docker(どっかーばいんどどっかー)

Tomohiko Himura

October 04, 2015
Tweet

More Decks by Tomohiko Himura

Other Decks in Programming

Transcript

  1. $ docker run docker ls bin dev etc home lib

    linuxrc media mnt proc root run sbin sys tmp usr var ࣮ࡍͷಈ͖
  2. $ docker run docker docker run docker ls Post http:///var/run/docker.sock/v1.20/containers/create:

    dial unix /var/run/docker.sock: no such file or directory. * Are you trying to connect to a TLS-enabled daemon without TLS? * Is your docker daemon up and running? EPDLFSͷதͰEPDLFSʜ WBSSVOEPDLFSTPDL͕ͳ͍ͬͯ͞
  3. $ docker run \ -v /var/run/docker.sock:/var/run/docker.sock docker \ docker run

    docker ls bin dev etc home lib linuxrc media mnt proc root run sbin sys tmp usr var
  4. $ docker run \ -v /var/run/docker.sock:/var/run/docker.sock docker \ docker run

    docker ls bin dev etc home lib linuxrc media mnt proc root run sbin sys tmp usr var EPDLFSͷதͰEPDLFS͕ಈ͍ͨ
  5. docker run \ -v /var/run/docker.sock:/var/run/docker.sock docker \ /bin/sh -c \

    ”docker run docker ls | docker run -i docker grep bin" bin sbin
  6. Cronを動かすコンテナにアプリケーション不要 0 0 * * * docker run hoge 0

    1 * * * docker run goro IPHFͱHPSP͕ϨδετϦʹ͋Ε͹0,