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

Dockerをざっくり知る

NobuakiKikuchi
March 15, 2021
600

 Dockerをざっくり知る

NobuakiKikuchi

March 15, 2021
Tweet

Transcript

  1. %PDLFSΛͬ͘͟Γ஌Δ 0 5XJUUFS

  2. 1 %PDLFSͱ͸ %PDLFS͕ࣾ։ൃͨ͠ίϯςφͱ͍͏֓೦Λ؅ཧ͢Δπʔϧ

  3. 2 2 )BSEXBSF )BSEXBSF͕͋ͬͯ ίϯςφͱ͸

  4. 3 3 )ZQFSWJTPS )BSEXBSF )ZQFSWJTPS͕͋ͬͯ ίϯςφͱ͸

  5. 4 4 )ZQFSWJTPS )BSEXBSF (VFTU04 ͦͷ্Ͱ04͕ಈ͍͓ͯΓ ίϯςφͱ͸

  6. 5 5 )ZQFSWJTPS )BSEXBSF %PDLFS&OHJOF (VFTU04 04ͷ্ʹ%PDLFS&OHJOF͕͋ͬͯ ίϯςφͱ͸

  7. 6 6 )ZQFSWJTPS )BSEXBSF #JOT-JCT #JOT-JCT "QQ" "QQ# (VFTU04 %PDLFS&OHJOFͷ্ͰΞϓϦέʔγϣϯ͕ಈ͍͍ͯΔ

    ίϯςφͱ͸ %PDLFS&OHJOF
  8. 7 7 )ZQFSWJTPS )BSEXBSF #JOT-JCT #JOT-JCT "QQ" "QQ# (VFTU04 ίϯςφͱ͸ΞϓϦέʔγϣϯ΍ϛυϧ΢ΣΞΛͻͱ·ͱΊʹͨ͠΋ͷ

    ίϯςφͱ͸ %PDLFS&OHJOF ίϯςφ" ίϯςφ#
  9. 8 8 ϋΠύʔόΠβܕ 74ίϯςφܕ )BSEXBSF )ZQFSWJTPS (VFTU04 #JOT-JCT #JOT-JCT "QQ"

    "QQ# (VFTU04 )ZQFSWJTPS )BSEXBSF %PDLFS&OHJOF #JOT-JCT #JOT-JCT "QQ" "QQ# (VFTU04 (VFTU04ͷ্ͰΞϓϦέʔ γϣϯϓϩηε͕ಈ͍͍ͯΔ %PDLFS&OHJOFͷ্ͰΞϓϦέʔ γϣϯίϯςφ͕ಈ͍͍ͯΔ
  10. 9 %PDLFSͷϥΠϑαΠΫϧ

  11. 10 %PDLFSGJMF %PDLFSͷϥΠϑαΠΫϧ %PDLFSGJMFͱ͸ඞཁͳύοέʔδ΍ΞϓϦ֤छઃఆΛؚΜͩ΋ͷ

  12. 11 %PDLFSGJMF %PDLFSͷϥΠϑαΠΫϧ %PDLFSGJMFͱ͸ඞཁͳύοέʔδ΍ΞϓϦ֤छઃఆΛؚΜͩ΋ͷ '30.QIQBQBDIF $01:QIQJOJ VTSMPDBMFUDQIQ $01:JOEFYQIQ WBSXXXIUNM

  13. 12 %PDLFSGJMF %PDLFS *NBHF #VJME %PDLFSͷϥΠϑαΠΫϧ %PDLFSGJMFΛ#VJME͢Δ͜ͱͰ%PDLFS*NBHF͕࡞੒͞ΕΔɻ '30.QIQBQBDIF $01:QIQJOJ VTSMPDBMFUDQIQ

    $01:JOEFYQIQ WBSXXXIUNM
  14. 13 %PDLFSGJMF %PDLFS*NBHFΛىಈ͢Δ͜ͱͰΞϓϦέʔγϣϯ͕ಈ͘ɻ %PDLFS *NBHF #VJME %PDLFS $POUBJOFS 3VO %PDLFSͷϥΠϑαΠΫϧ

    '30.QIQBQBDIF $01:QIQJOJ VTSMPDBMFUDQIQ $01:JOEFYQIQ WBSXXXIUNM
  15. 14 14 %PDLFSΛ࢖͏ϝϦοτᶃ ü Ͳͷ؀ڥͰ΋ಉ͡Α͏ʹಈ͘ ίϯςφܕ )ZQFSWJTPS 4FSWFS %PDLFS&OHJOF #JOT-JCT

    #JOT-JCT "QQ" "QQ# (VFTU04
  16. 15 15 %PDLFSΛ࢖͏ϝϦοτᶃ ü Ͳͷ؀ڥͰ΋ಉ͡Α͏ʹಈ͘ %PDLFS&OHJOFͷ্ͰΞϓϦ͕ ಈ͍͍ͯΔͨΊ04ʹґଘ͠ͳ͍ɻ ίϯςφܕ )ZQFSWJTPS 4FSWFS

    %PDLFS&OHJOF #JOT-JCT #JOT-JCT "QQ" "QQ# (VFTU04
  17. 16 16 %PDLFSΛ࢖͏ϝϦοτᶃ ü Ͳͷ؀ڥͰ΋ಉ͡Α͏ʹಈ͘ %PDLFS&OHJOFͷ্ͰΞϓϦ͕ ಈ͍͍ͯΔͨΊ04ʹґଘ͠ͳ͍ɻ ͲΜͳ؀ڥͰ΋શ͘ಉ͡Α͏ʹ ಈ࡞͢Δ͜ͱ͕Ͱ͖Δɻ ίϯςφܕ

    )ZQFSWJTPS 4FSWFS %PDLFS&OHJOF #JOT-JCT #JOT-JCT "QQ" "QQ# (VFTU04
  18. 17 17 %PDLFSΛ࢖͏ϝϦοτᶄ ü EFQMPZɾSPMMCBDL͕؆୯ ৽͍͠Πϝʔδ ݹ͍Πϝʔδ ϦϙδτϦ %PDLFS3FHJTUSZ EFQMPZ

    SPMMCBDL "QQ
  19. 18 18 %PDLFSΛ࢖͏ϝϦοτᶄ ü EFQMPZɾSPMMCBDL͕؆୯ %PDLFSͷίϯςφΠϝʔδ͸ϦϙδτϦ ؅ཧͰ͖Δɻ ৽͍͠Πϝʔδ ݹ͍Πϝʔδ ϦϙδτϦ

    %PDLFS3FHJTUSZ EFQMPZ SPMMCBDL "QQ
  20. 19 19 %PDLFSΛ࢖͏ϝϦοτᶄ ü EFQMPZɾSPMMCBDL͕؆୯ %PDLFSͷίϯςφΠϝʔδ͸ϦϙδτϦ ؅ཧͰ͖Δɻ SPMMCBDLΛ࣮֬ʹߦ͏͜ͱ͕Ͱ͖Δɻ ৽͍͠Πϝʔδ ݹ͍Πϝʔδ

    ϦϙδτϦ %PDLFS3FHJTUSZ EFQMPZ SPMMCBDL "QQ
  21. 20 20 %PDLFSΛ࢖͏ϝϦοτᶄ ü EFQMPZɾSPMMCBDL͕؆୯ %PDLFSͷίϯςφΠϝʔδ͸ϦϙδτϦ ؅ཧͰ͖Δɻ SPMMCBDLΛ࣮֬ʹߦ͏͜ͱ͕Ͱ͖Δɻ • ίʔυͷΈͷEFQMPZͩͱ4FSWFSͷঢ়ଶ͕EFQMPZ

    લޙͰมΘ͍ͬͯͳ͍͔ߟྀ͢Δඞཁ͕͋Δɻ ৽͍͠Πϝʔδ ݹ͍Πϝʔδ ϦϙδτϦ %PDLFS3FHJTUSZ EFQMPZ SPMMCBDL "QQ
  22. 21 21 %PDLFSΛ࢖͏ϝϦοτᶄ ü EFQMPZɾSPMMCBDL͕؆୯ %PDLFSͷίϯςφΠϝʔδ͸ϦϙδτϦ ؅ཧͰ͖Δɻ SPMMCBDLΛ࣮֬ʹߦ͏͜ͱ͕Ͱ͖Δɻ • ίʔυͷΈͷEFQMPZͩͱ4FSWFSͷঢ়ଶ͕EFQMPZ

    લޙͰมΘ͍ͬͯͳ͍͔ߟྀ͢Δඞཁ͕͋Δɻ • %PDLFSͷ৔߹͸%PDLFS&OHJOFͷ্ͰΞϓϦ͕ ىಈ͍ͯ͠ΔͨΊɺ4FSWFSͷঢ়ଶʹґଘͤͣ؆୯ ʹSPMMCBDLΛߦ͏͜ͱ͕Ͱ͖Δ ৽͍͠Πϝʔδ ݹ͍Πϝʔδ ϦϙδτϦ %PDLFS3FHJTUSZ EFQMPZ SPMMCBDL "QQ
  23. &$3&$4ͱ͸ 22 &$3 "NB[PO&MBTUJD$POUBJOFS3FHJTUSZ &$4 "NB[PO&MBTUJD$POUBJOFS4FSWJDF

  24. &$3&$4ͱ͸ 23 &$3 "NB[PO&MBTUJD$POUBJOFS3FHJTUSZ &$4 "NB[PO&MBTUJD$POUBJOFS4FSWJDF %PDLFS*NBHFΛ ϦϙδτϦ؅ཧ͢ΔαʔϏε %PDLFS$POUBJOFSΛ؅ཧɺ࣮ߦɺఀ ࢭͰ͖ΔαʔϏε

  25. 24 %PDLFSGJMF %PDLFS *NBHF #VJME %PDLFS $POUBJOFS 3VO &$3&$4ͱ͸

  26. 25 %PDLFSGJMF %PDLFS *NBHF #VJME %PDLFS $POUBJOFS 3VO &$3 %PDLFS*NBHFΛ

    ϦϙδτϦ؅ཧ &$4 %PDLFS$POUBJOFSΛ؅ཧ &$3&$4ͱ͸
  27. 26 &$ ༻ޠͷղઆ

  28. 27 &$ 5BTL 5BTLEFGJOJUJPO ༻ޠͷղઆ 5BTLEFGJOJUJPO ΞϓϦέʔγϣϯͷઃܭਤͷΑ͏ͳ΋ͷɻ ࢖༻͢Δ%PDLFSJNBHF΍ϝϞϦͷׂΓ ౰ͯྔΛࢦఆɻ 5BTL

    $POUBJOFS ܈
  29. 28 &$4DMVTUFS &$ 5BTL 5BTLEFGJOJUJPO ༻ޠͷղઆ 5BTLEFGJOJUJPO ΞϓϦέʔγϣϯͷઃܭਤͷΑ͏ͳ΋ͷɻ ࢖༻͢Δ%PDLFSJNBHF΍ϝϞϦͷׂΓ ౰ͯྔΛࢦఆɻ

    5BTL $POUBJOFS ܈ &$4DMVTUFS ίϯςφΠϯελϯεͷάϧʔϓ
  30. 29 &$4DMVTUFS &$ &$4BHFOU 5BTL 5BTLEFGJOJUJPO &$4 ༻ޠͷղઆ 5BTLEFGJOJUJPO ΞϓϦέʔγϣϯͷઃܭਤͷΑ͏ͳ΋ͷɻ

    ࢖༻͢Δ%PDLFSJNBHF΍ϝϞϦͷׂΓ ౰ͯྔΛࢦఆɻ 5BTL $POUBJOFS ܈ &$4DMVTUFS ίϯςφΠϯελϯεͷάϧʔϓ &$4BHFOU &$4͔ΒϦΫΤετΛड৴ͨ͠ࡍʹλ εΫΛ։͓࢝ΑͼఀࢭΛߦ͏ɻ
  31. 30 ϋϯζΦϯͰ࡞੒͢Δ΋ͷᶃ #JOT-JCT "QQ" $POUBJOFS &$

  32. 31 ϋϯζΦϯͰ࡞੒͢Δ΋ͷᶄ &$4 &$4DMVTUFS &$ &$4BHFOU 5BTLEFGJOJUJPO 5BTL