Dockerのプラグインの話

032eb5910248d5ffd0e0ac3820c45583?s=47 gorilla0513
September 05, 2019

 Dockerのプラグインの話

032eb5910248d5ffd0e0ac3820c45583?s=128

gorilla0513

September 05, 2019
Tweet

Transcript

  1. %PDLFSͷϓϥάΠϯͷ࿩ %PDLFS.FFUVQ5PLZP

  2. ࣗݾ঺հ ໊લ
 ɹΰϦϥ ࢓ࣄ
 ɹ্໺ಈ෺ԂΛकΔ ޷͖ͳ΋ͷ
 ɹ7JNɺ(Pɺ%PDLFSɺόφφ झຯ
 ɹ044׆ಈ

  3. ࣗݾ঺հ %PDLFSͷ56*ΫϥΠΞϯτ
 EPDVJ
 Λ࡞͍ͬͯ·͢ IUUQTHJUIVCDPNTLBOFIJSBEPDVJ

  4. None
  5. ࠓ೔ͷ͓࿩

  6. %PDLFSͷϓϥάΠϯͷ࿩Ͱ͸ͳ͍

  7. 7JNͷϓϥάΠϯEPDLFSWJN ͷ͓࿩

  8. ͜Μͳײ͡ͷ΍ͭ

  9. ͜Μͳײ͡ͷ΍ͭ

  10. ͲΜͳ͜ͱ͕Ͱ͖Δͷʁ EPDLFSDMJͰͰ͖Δ͜ͱ͸શ෦Ͱ͖Δ

  11. ͲΜͳ͜ͱ͕Ͱ͖Δͷʁ w ίϯςφͷ࡞੒ɺ࡟আɺΞλονɺϩά֬ೝ w Πϝʔδͷݕࡧɺऔಘɺ࡟আ w ίϯςφͷ$16.&.࢖༻཰ͷ؂ࢹ ओཁػೳ͸ҎԼ

  12. σϞ

  13. ࢓૊Έ

  14. 7JNͷཪͰ
 DVSMͱEPDLFSDMJΛ࣮ߦ͍ͯ͠Δ

  15. IUUQTEPDTEPDLFSDPNWFOHJOFEPDLFSPWFSWJFXUIF EPDLFSQMBUGPSN

  16. EPDLFSDMJ͸
 3&45"1*Λୟ͍͍ͯΔ

  17. )551ͳͷͰDVSMͰ΋ ಉ͜͡ͱ͕Ͱ͖Δ

  18. DVSMΛ7JN͔Β࣮ߦ͢Ε͹
 7JN͸EPDLFSDMJͷ୅ΘΓʹͳΕΔ

  19. EPDLFSWJNͷ஀ੜ )UUQTHJUIVCDPNTLBOFIJSBEPDLFSWJN

  20. :DockerContainers ! $ curl --unix-socket /var/run/docker.sock \ -X GET \

    --dump-header {header_file} \ --output {response_body_file} \ http://localhost/containers/json ͜Μͳײ͡
  21. :Docker run --rm -it gorilla bash ! $ docker run

    —rm -it gorilla bash ͜Μͳײ͡
  22. ͱͯ΋γϯϓϧ

  23. ͱ͜ΖͰʜ

  24. DVSMͰͰ͖ΔͳΒ
 ͳͥEPDLFSDMJ΋࢖͏ͷʁ

  25. ίϯςφͷΞλον͸ 5$1PS8FC4PDLFUΛ࢖͏

  26. POST /containers/16253994b7c4/attach? stream=1&stdout=1 HTTP/1.1 Upgrade: tcp Connection: Upgrade ίϯςφΞλονͷϦΫΤετ 5$1

    IUUQTEPDTEPDLFSDPNFOHJOFBQJWPQFSBUJPO $POUBJOFS"UUBDI
  27. DVSM͸5$1ͱ8FC4PDLFUʹର Ԡ͍ͯ͠ͳ͍ͷͰແཧ

  28. େਓ͘͠EPDLFSDMJΛ࢖͏

  29. ࠓճಘͨ஌ݟ

  30. DVSM͕͋Ε͹ େମEPDLFSͷૢ࡞͕Ͱ͖Δ

  31. CBTI͚ͩͰΠϯλϥΫςΟϒͳ
 πʔϧ΋࡞ΕΔʢ͸ͣ

  32. ࠓ౓͸CBTIͰԿ͔࡞Δ͔΋ʁ

  33. ޤ͏͝ظ଴

  34. ͝ਗ਼ௌ͋Γ͕ͱ͏͍͟·ͨ͠