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

DockerをVMと比較しないで理解する / Understand Docker without comparing with VM

DockerをVMと比較しないで理解する / Understand Docker without comparing with VM

初心者向けのDocker概要説明資料です

93c80c388fe9d8f9df7d030549a0ff0b?s=128

Takeshi Kondo

April 24, 2018
Tweet

Transcript

  1. %PDLFSΛ7.ͱൺֱ͠ͳ͍Ͱ ཧղ͢Δ ࣾ಺ษڧձ LPOEPUBLFTIJ

  2. None
  3. %PDLFS஌ͬͯΔͻͱʔʁ✋

  4. Profile w LPOEPUBLFTIJ w 4PGUXBSF&OHJOFFS೥ੜ w %PDLFSྺ೥൒ w $*$% (JU-BC$*$JSDMF$*

     w 8FCΞϓϦέʔγϣϯߏங
  5. ࠓ೔ͷର৅ %PDLFSͬͯฉ͍ͨ͜ͱ͋Δ͚Ͳ Α͘஌Βͳ͍ͻͱ

  6. ࠓ೔ͷΰʔϧ %PDLFSͱ͸Կऀ͔ͬ͘͟Γཧղ͠ ໌೔͔Β࢖ͬͯΈΑ͏ͱ͍͏ ؾ࣋ͪʹͳΔ

  7. ࠓ೔࿩͞ͳ͍͜ͱ 7.ͱͷൺֱ

  8. None
  9. Docker͸Linuxίϯςφ࣮૷ͷ1ͭ ίϯςφٕज़ͷجૅ஌ࣝIUUQTUIJOLJUDPKQTUPSZ

  10. ࠓ೔͜Ε͚֮ͩ͑ͯؼ͍ͬͯͩ͘͞ ίϯςφ͸ϓϩηε

  11. None
  12. ίϯςφ͸ϓϩηεʢͱͯ͠ѻ͑Δ Α͏ʹϦιʔεΛִ཭ͨ͠΋ͷʣ

  13. ίϯςφ͸LinuxKernelͷϦιʔεִ཭ٕज़ • namespace … ۠ըԽ • cgroup … ϦιʔεׂΓ౰ͯ؅ཧ •

    chroot … ϑΝΠϧγεςϜͷ෼཭
  14. ίϯςφͷར఺ Մൖੑ QPSUBCJMJUZ

  15. %PDLFS͑͋͞Ε͹Ͳ͜Ͱ΋ ಉ͡Α͏ʹಈ͘

  16. Build, Ship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