Slide 1

Slide 1 text

WTDPEFKQ 3FNPUF%FWFMPQNFOU XJUI1PENBO /PW W 74$PEF$POGFSFODF+BQBO 4IJPO5BOBLB !UOLPO

Slide 2

Slide 2 text

WTDPEFKQ ࣗݾ঺հ • ాத࢘ԸʢλφΧ γΦϯʣ!UOLPO • ϨουϋοτגࣜձࣾɿιϦϡʔγϣϯΞʔΩςΫτ • 74$PEF.FFUVQ • -5ɿʮ3FNPUF$POUBJOFSTͷ઀ଓઌϗετʹ 'FEPSB$PSF04Λ࢖͏ʯ IUUQTWTDPEFDPOOQBTTDPNFWFOU ࠷ۙ͸*5ΤϯδχΞ͔Ͳ͏͔΋ո͘͠ͳ͖ͬͯͨʜ ˠԻͱςΫϊϩδʔ͕ॏͳΔྖҬ͕޷෺ͷσδλϧΫϦΤΠλʔ

Slide 3

Slide 3 text

WTDPEFKQ ΞδΣϯμ • 3FNPUF%FWFMPQNFOUͱ 1PENBO • 3FNPUF$POUBJOFSTXJUI1PENBOͷ࣮ફ • ·ͱΊ • ΦϚέ

Slide 4

Slide 4 text

WTDPEFKQ ຊ೔ͷςʔϚ •3FNPUF%FWFMPQNFOUXJUI1PENBO o%PDLFSΛ࢖Θͣίϯςφͷ࣮ߦʹ1PENBOΛ࢖༻͢Δ o3FNPUF%FWFMPQNFOUͰ1PENBO্Ͱ࣮ߦͨ͠ίϯςφʔͷ தͰ։ൃΛߦ͏

Slide 5

Slide 5 text

WTDPEFKQ ݁࿦ • 3FNPUF44)84-ͱ1PENBOΛซ༻͢Δͷ͸໰୊ແ͠ • 3FNPUF$POUBJOFST͸%PDLFSΛ࢖͏ͷ͕շద ݱ࣌఺Ͱ͸

Slide 6

Slide 6 text

WTDPEFKQ 3FNPUF%FWFMPQNFOU ͱ 1PENBO

Slide 7

Slide 7 text

WTDPEFKQ 3FNPUF%FWFMPQNFOU • 3FNPUF44) • 3FNPUF84- • 3FNPUF$POUBJOFST

Slide 8

Slide 8 text

WTDPEFKQ 3FNPUF$POUBJOFSTͱ 1PENBO • 1PENBOͷαϙʔτ͸ ೥݄ɺ74$PEFW͔Β https://code.visualstudio.com/updates/v1_45?ref=codebldr

Slide 9

Slide 9 text

WTDPEFKQ 3FNPUF$POUBJOFSTͱ 1PENBO • %PDLFS1BUIʹ QPENBO ͱࢦఆ͢Δ͚ͩ Developing inside a Container using Visual Studio Code Remote Development https://code.visu alstudio.com/doc s/remote/contain ers

Slide 10

Slide 10 text

WTDPEFKQ 1PENBOͱ͸ • 1PENBO UIF10%."/BHFS • 044ͷ%PDLFSޓ׵ͷίϯςφʔπʔϧ • ಛ௃ o σʔϞϯϨε o ϧʔτϨε o 0$*४ڌ https://podman.io/

Slide 11

Slide 11 text

WTDPEFKQ 1PENBOࢀߟϦϯΫ • %PDLFSϢʔβʔͷͨΊͷ1PENBOͱ#VJMEBIͷ঺հ ੺๧Τϯδ χΞϒϩά o IUUQTSIFCIBUFOBCMPHDPNFOUSZQPENBO@CVJEBI@GPS@EPDLFS@VTFST • ίϯςφʔͷߏஙɺ࣮ߦɺ͓Αͼ؅ཧ 3FE )BU &OUFSQSJTF -JOVYc3FE)BU$VTUPNFS1PSUBM o IUUQTBDDFTTSFEIBUDPNEPDVNFOUBUJPOKBKQSFE@IBU@FOUFSQSJTF@MJOVYIUNM TJOHMFCVJMEJOH@SVOOJOH@BOE@NBOBHJOH@DPOUBJOFSTJOEFY • τϥϒϧରԠ৘ใʢˣΦεεϝʣ o QPENBOUSPVCMFTIPPUJOHNEBUNBTUFSuDPOUBJOFSTQPENBO § IUUQTHJUIVCDPNDPOUBJOFSTQPENBOCMPCNBTUFSUSPVCMFTIPPUJOHNE

Slide 12

Slide 12 text

WTDPEFKQ %PDLFSαϙʔτ͞Εͳ͍໰୊ • 3)&-$FOU04͔Β%PDLFS͸αϙʔτର৅֎ o“RHEL 8 には Docker が含まれず、Red Hat のサポート対象外 になります” (引⽤:RHEL8ドキュメント) • ެ͔ࣜΒ%PDLFSͷύοέʔδ͸ఏڙ͞Εͳ͍ Ø“docker コマンドと Docker コンテナーエンジンも、Red Hat Enterprise Linux 8 から完全に削除しました。”(引⽤:RHEL8ド キュメント) ίϯςφʔͷߏஙɺ࣮ߦɺ͓Αͼ؅ཧ 3FE )BU&OUFSQSJTF -JOVYc3FE)BU$VTUPNFS1PSUBM IUUQTBDDFTTSFEIBUDPNEPDVNFOUBUJPOKBKQSFE@IBU@FOUFSQSJTF@MJOVYIUNM TJOHMFCVJMEJOH@SVOOJOH@BOE@NBOBHJOH@DPOUBJOFSTJOEFY

Slide 13

Slide 13 text

WTDPEFKQ 1PENBOͷରԠ04 • -JOVYσΟετϦϏϡʔγϣϯ o "NB[PO-JOVYɺ"SDI-JOVY.BOKBSP-JOVYɺ$FOU04ɺ%FCJBOɺ 'FEPSBɺ(FOUPPɺ0QFO&NCFEEFEɺPQFO464&ɺPQFO464&,VCJDɺ 3BTQCFSSZ1J04BSNIG FY3BTQCJBO ɺ3BTQCFSSZ1J04BSN CFUB ɺ3)&-ɺ6CVOUV • .BD oϦϞʔτΫϥΠΞϯτͷΈ • 8JOEPXT oϦϞʔτΫϥΠΞϯτͷΈ QPENBOSFNPUFίϚϯυΛ࢖ͬ ͯɺ-JOVY্Ͱ1PENBOΛ࣮ߦ

Slide 14

Slide 14 text

WTDPEFKQ 3FNPUF$POUBJOFSTXJUI 1PENBOͷ࣮ફ

Slide 15

Slide 15 text

WTDPEFKQ 1PENBOಈ࡞֬ೝࡁΈ؀ڥ • ʢࢀߟʣ3FNPUF44)ɺ3FNPUF84- oϦϞʔτ઀ଓઌͰ1PENBO͕ਖ਼ৗʹ࢖༻Ͱ͖Ε͹໰୊ແ͠ • 3FNPUF$POUBJOFST o-JOVYσεΫτοϓ্Ͱ74$PEFΛىಈ § 'FEPSB8PSL4UBJPOɿ0,ʂ o8JOEPXTσεΫτοϓ্Ͱ74$PEFΛىಈ § 8JOEPXT84-ʢ6CVOUVʣɿ0,ʂ

Slide 16

Slide 16 text

WTDPEFKQ 1PENBOPO'FEPSB • ಈ࡞֬ೝ o ʮ"EE%FWFMPQNFOU$POUBJOFS$POGJHVSBUJPO'JMFTʯͰ ௥Ճͨ͠ૉͷEFWDPOUBJOFSKTPO § 0,ʂʢΤϥʔରԠඞཁʣ o (JUDMPOFͨ͠WTDPEFSFNPUFUSZQZUIPO § 0,ʂʢΤϥʔରԠඞཁʣ o 5SZBTBNQMF § /( • ϙΠϯτ o 74$PEFαϙʔτͷߏ੒ o 1PENBO͸ҰൠϢʔβʔͰ࣮ߦՄೳ o 4&-JOVYͷແޮԽෆཁ § ΤϥʔରԠͷιʔεमਖ਼͸ඞཁ 1PENBO 74$PEF 3FNPUF$POUBJOFST ίϯςφʔ ϩʔΧϧ୺຤

Slide 17

Slide 17 text

WTDPEFKQ 1PENBOPO'FEPSB • ΤϥʔରԠ o EFWDPOUBJOFSKTPOΛमਖ਼ SVO"SHT<TFDVSJUZPQU MBCFMEJTBCMF> SFNPUF6TFS

Slide 18

Slide 18 text

WTDPEFKQ 1PENBOPO'FEPSB 74$PEFͰ։͍ͨϩʔΧϧ؀ڥ্ͷ ιʔεϑΝΠϧ

Slide 19

Slide 19 text

WTDPEFKQ 1PENBOPO'FEPSB 1PENBOͰί ϯςφ͕ىಈ ͞Ε͍ͯΔ %FW$POUBJOFS"MQJOF W ˠʮ"EE%FWFMPQNFOU$POUBJOFS $POGJHVSBUJPO'JMFTʯͰ௥Ճͨ͠ૉͷ EFWDPOUBJOFSKTPO

Slide 20

Slide 20 text

WTDPEFKQ 1PENBOPO84- 6CVOUV • ಈ࡞֬ೝ o ʮ"EE%FWFMPQNFOU$POUBJOFS$POGJHVSBUJPO'JMFTʯͰ ௥Ճͨ͠ૉͷEFWDPOUBJOFSKTPO § 0,ʂ o (JUDMPOFͨ͠WTDPEFSFNPUFUSZQZUIPO § /( o 5SZBTBNQMF § /(ʢϝχϡʔ͕ग़ͯ͜ͳ͍ɻ84-ͷத͔ͩΒʁʣ • ϙΠϯτ o 3FNPUF84-Ͱ઀ଓͨ͠؀ڥͷ্Ͱɺ͞Βʹ3FNPUF $POUBJOFSTΛ࣮ߦ o ඇެࣜͳߏ੒ o 1PENBO͸ҰൠϢʔβʔͰ࣮ߦՄೳ 1PENBO 74$PEF 3FNPUF84- 3FNPUF$POUBJOFST ίϯςφʔ ϩʔΧϧ୺຤ 84- 6CVOUV

Slide 21

Slide 21 text

WTDPEFKQ 1PENBOPO84- 6CVOUV • 1PENBOͷΠϯετʔϧ o 84-ىಈޙԼهΛ࣮ߦ o FUDDPOUBJOFSTDPOUBJOFSTDPOGΛमਖ਼ FUDPTSFMFBTF TVEPTIDFDIPEFCIUUQEPXOMPBEPQFOTVTFPSHSFQPTJUPSJFTEFWFMLVCJDMJCDPOUBJOFSTTUBCMFY\/".&^@\7&34*0/@*%^ FUDBQUTPVSDFTMJTUEEFWFMLVCJDMJCDPOUBJOFSTTUBCMFMJTU XHFUOWIUUQTEPXOMPBEPQFOTVTFPSHSFQPTJUPSJFTEFWFMLVCJDMJCDPOUBJOFSTTUBCMFY\/".&^@\7&34*0/@*%^3FMFBTFLFZ03FMFBTFLFZ TVEPBQULFZBEE 3FMFBTFLFZ TVEPBQUHFUVQEBUFRR TVEPBQUHFURRZJOTUBMMQPENBO TVEPNLEJSQFUDDPOUBJOFST FDIPFaOSFHJTUSJFT<EPDLFSJP RVBZJP>cTVEPUFFFUDDPOUBJOFSTSFHJTUSJFTDPOG TVEPWJFUDDPOUBJOFSTDPOUBJOFSTDPOG DHSPVQ@NBOBHFSDHSPVQGT FWFOUT@MPHHFSGJMF How to run Podman on Windows with WSL2 | Enable Sysadmin https://www.redhat.com/sysadmin/podman-windows-wsl2

Slide 22

Slide 22 text

WTDPEFKQ 1PENBOPO84- 6CVOUV 74$PEFͰ։͍ͨ84-؀ڥ্ͷι ʔεϑΝΠϧ 84-্Ͱ࣮ߦ͞Εͯ ͍Δ

Slide 23

Slide 23 text

WTDPEFKQ 1PENBOPO84- 6CVOUV 1PENBOͰί ϯςφ͕ىಈ ͞Ε͍ͯΔ %FW$POUBJOFS"MQJOF W ˠʮ"EE%FWFMPQNFOU$POUBJOFS $POGJHVSBUJPO'JMFTʯͰ௥Ճͨ͠ૉͷ EFWDPOUBJOFSKTPO

Slide 24

Slide 24 text

WTDPEFKQ .BD͸Ͳ͏͢Ε͹ʜ • .BDͰ͸84-΋ͳ͘ɺQPENBOSFNPUF͔͠࢖͑ͳ͍ o3FNPUF$POUBJOFSTͰ͸QPENBOSFNPUF͸ಈ࡞͠ͳ͍ • ͦ΋ͦ΋ɺ3FNPUF$POUBJOFSTͷཁ݅͸ %PDLFSΛ༻ҙ͢Δ͜ͱ ˠ1PENBOΛ࢖ͬͯ%PDLFSΛಈ͔ͤ͹Α͍ͷͰ͸ʁ

Slide 25

Slide 25 text

WTDPEFKQ %PDLFSJO%PDLFS • %PDLFSͷ্ͰʢதͰʁʣ%PDLFSΛಈ͔ٕ͢ज़ • %PDLFSΦϑΟγϟϧΠϝʔδ͋Γ docker - Docker Hub https://hub.docker.com/_/docker

Slide 26

Slide 26 text

WTDPEFKQ %PDLFSJO1PENBOͷ࣮ߦํ਑ • 5$1Ͱ௚઀ιέοτ઀ଓ o TFUUJOHTKTPOʢEPDLFSDPOUFYUͰઃఆ΋Մೳʣ • ϧʔτݖݶͰ࣮ߦ o ݱ࣌఺Ͱ͸ճආෆೳ • $HSPVQWʹมߋ • ࣮ߦίϚϯυ EPDLFSIPTUUDQ\ϦϞʔτ઀ଓઌϗετͷ*1ΞυϨε^ EPDLFSUMT7FSJGZ TVEPEOGJOTUBMMHSVCCZ TVEPHSVCCZVQEBUFLFSOFM"--BSHTTZTUFNEVOJGJFE@DHSPVQ@IJFSBSDIZz TVEPSFCPPU 1PENBO ίϯςφʔ ϦϞʔτ઀ଓઌϗετ %PDLFS ίϯςφʔ TVEPQPENBOSVOMPHMFWFMEFCVHF%0$,&3@5-4@$&35%*3QSJWJMFHFEEJUOBNFEJOEQEPDLFSEJOE l10354z ͜ΕΛࢦఆ

Slide 27

Slide 27 text

WTDPEFKQ %PDLFSJO1PENBOPO'FEPSB 74$PEF 3FNPUF$POUBJOFST %PDLFS$-* ʻϩʔΧϧ୺຤͔Βίϯςφ࣮ߦ͞Ε͍ͯΔ%PDLFSϗετ΁5$1௚઀઀ଓʼ ϩʔΧϧ୺຤ ϦϞʔτ઀ଓઌϗετ 1PENBO ίϯςφʔ %PDLFS ίϯςφʔ %PDLFS$-*ͷΈඞཁɻ %PDLFS&OHJOFͷ࣮ߦ ͸ෆཁɻ

Slide 28

Slide 28 text

WTDPEFKQ %PDLFSJO1PENBOPO'FEPSB • ಈ࡞֬ೝ o ʮ"EE%FWFMPQNFOU$POUBJOFS$POGJHVSBUJPO'JMFTʯͰ௥Ճͨ͠ૉͷ EFWDPOUBJOFSKTPO § 0,ʂʢΤϥʔରԠඞཁʣ o (JUDMPOFͨ͠WTDPEFSFNPUFUSZQZUIPO § /( o 5SZBTBNQMF § /( o ىಈࡁΈͷίϯςφͷΞλον § 0,ʂ • ϙΠϯτ o ඇެࣜͳߏ੒ o 1PENBOͰ%PDLFSJO%PDLFSίϯςφͷ࣮ߦʹϧʔτݖݶ͕ඞཁ o ϩʔΧϧ୺຤ͷιʔεϑΝΠϧͱ%FW$POUBJOFS಺ͷϑΝΠϧ͸௚઀ಉظ͠ ͳ͍ʢ %FW$POUBJOFSͷϚ΢ϯτઌ͸%PDLFSϗετΛࢀর͢ΔͨΊʣ 1PENBO ίϯςφʔ ϦϞʔτ୺຤ %PDLFS ίϯςφʔ

Slide 29

Slide 29 text

WTDPEFKQ %PDLFSJO1PENBOPO'FEPSB • ΤϥʔରԠ o EFWDPOUBJOFSKTPO಺ͷ8PSLTQBDFϚ΢ϯτॲཧΛमਖ਼͢Δʢ͍ͣΕ͔ͷํ๏Λࢦఆʣ § %PDLFS7PMVNFΛࢦఆ͢Δํ๏ʢ%PDLFS7PMVNF͸ࣄલʹ࡞੒͓ͯ͘͠ʣ § %PDLFSϗετʢ%PDLFSJO1PENBO্ͷʣͷύεΛࢦఆ͢Δ XPSLTQBDF.PVOUTPVSDF%PDLFS7PMVNF໊ UBSHFUXPSLTQBDF UZQFWPMVNF XPSLTQBDF'PMEFSXPSLTQBDFWTDPEFSFNPUFUSZQZUIPO XPSLTQBDF.PVOUTPVSDFIPNFVTFSWTDPEFSFNPUFUSZQZUIPO UBSHFUXPSLTQBDF UZQFWPMVNF XPSLTQBDF'PMEFSXPSLTQBDF ʢ஫ҙʣϩʔΧϧ؀ڥͱ௚઀ͷϑΝΠϧಉظ͸Ͱ͖ͳ͍ͷͰɺಉظ͸(JUͳͲΛ࢖͏ඞཁ͕͋Δ

Slide 30

Slide 30 text

WTDPEFKQ %PDLFSJO1PENBOPO'FEPSB 74$PEFͰ։͍ͨϩʔΧϧ؀ڥ্ͷ ιʔεϑΝΠϧʢ%FW$POUBJOFSͱ ͸௚઀ಉظ͞Εͳ͍ʣ 8PSLTQBDFͷ Ϛ΢ϯτํ๏Λࢦఆ %PDLFSϗετͱ ௚઀઀ଓઃఆ

Slide 31

Slide 31 text

WTDPEFKQ %PDLFSJO1PENBOPO'FEPSB [user@localhost ~]$ ip a show ens161 |grep 192 inet 192.168.1.164/24 brd 192.168.1.255 scope global dynamic noprefixroute ens161 [user@localhost ~]$ docker bash: docker: command not found... Packages providing this file are: 'podman-docker' 'moby-engine' [user@localhost ~]$ whereis docker docker: [user@localhost ~]$ sudo podman ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 74fb9586cec9 docker.io/library/docker:dind 2 days ago Up 23 hours ago 0.0.0.0:2375->2375/tcp dind [user@localhost ~]$ sudo podman exec -it dind ls -la /home/user/vscode-remote-try-python total 36 drwxr-xr-x 1 root root 222 Nov 23 16:49 . drwxr-xr-x 1 root root 58 Nov 23 16:46 .. drwxr-xr-x 1 root root 54 Nov 23 16:46 .devcontainer drwxr-xr-x 1 root root 158 Nov 23 17:18 .git -rw-r--r-- 1 root root 89 Nov 23 16:46 .gitattributes -rw-r--r-- 1 root root 5594 Nov 23 16:46 .gitignore drwxr-xr-x 1 root root 22 Nov 23 16:46 .vscode -rw-r--r-- 1 root root 1183 Nov 23 16:46 LICENSE -rw-r--r-- 1 root root 4736 Nov 23 16:46 README.md drwxr-xr-x 1 root root 36 Nov 23 16:48 __pycache__ -rw-r--r-- 1 root root 456 Nov 23 16:46 app.py -rw-r--r-- 1 root root 5 Nov 23 16:46 requirements.txt drwxr-xr-x 1 root root 20 Nov 23 16:46 static -rw-r--r-- 1 root root 32 Nov 23 16:49 test.txt %FW$POUBJOFS1ZUIPO ˠ(JUDMPOFͨ͠WTDPEFSFNPUFUSZQZUIPO %PDLFSϗετ %PDLFSJO1PENBOʣ্ͷಉ͡ϑΝΠϧ܈

Slide 32

Slide 32 text

WTDPEFKQ ·ͱΊ • 3FNPUF44)84-ͱ 1PENBOΛซ༻͢Δͷ͸໰୊ແ͠ • 3FNPUF$POUBJOFST͸ %PDLFSΛ࢖͏ͷ͕շద ݱ࣌఺Ͱ͸ o'FEPSBͳͲཁ݅͑͞੔͑͹3FNPUF$POUBJOFST1PENBO͸ར༻Մೳ o1PENBOPO84-΋Մೳ o%PDLFSJO1PENBO΋ར༻Մೳʢ੍ݶ͋Γʣ • ·ͩ·੍ͩݶ͸ଟ͍͕ɺࠓޙͷΞοϓσʔτͰ%PDLFSͱͷબ୒͕༰ қʹͰ͖ΔΑ͏ʹͳΔ͜ͱΛظ଴͍ͨ͠

Slide 33

Slide 33 text

WTDPEFKQ 5IBOLZPV

Slide 34

Slide 34 text

WTDPEFKQ ΦϚέɿ'FEPSB$PSF04ͷ঺հ • ܰྔͳ04ɿ ØίϯςφʔΛಈ͔͢໨తҎ֎ͷ༨ܭͳ΋ͷ͕ͳ͍ • Πϯετʔϧɺ04ઃఆ͕؆୯ɿ Ø*HOJUJPOͱ͍͏࢓૊ΈΛར༻ • %PDLFSʢNPCZFOHJOFʣɺ1PENBOඪ४౥ࡌɿ ØΠϯετʔϧͷखؒ΍ޓ׵ੑΛؾʹͤͣɺ͙͢ʹίϯς φʔΛ࣮ߦՄೳ 4PGUXBSF%FTJHO݄߸ͷ݄ץ'FEPSBδϟʔφϧʹʮ'FEPSB $PSF040,%ʯͷهࣄΛࣥච