Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
AWS演習(4)- Docker・OSコンテナ
Search
axi-sugiki
February 05, 2019
Education
45
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
AWS演習(4)- Docker・OSコンテナ
授業の演習で使用した資料です.一コマの演習,また2年生を対象とした演習で,1年生では専門教育を行わず,2年生から学部・学科に配属されるため,この辺りに水準を合わせています.
axi-sugiki
February 05, 2019
More Decks by axi-sugiki
See All by axi-sugiki
AWS演習(1)- EC2インスタンスの作成
axisugiki
0
71
AWS演習(2)- DLAMI・Jupyter Notebook・TensorFlow
axisugiki
0
49
AWS演習(3)- GitHub・ソーシャルコーディング
axisugiki
0
30
AWS演習(未実施)- Rekognition・Lambda・S3
axisugiki
0
71
AWS演習(未実施)- EMR・MapReduce
axisugiki
1
29
AWS演習_未7.pdf
axisugiki
0
53
Other Decks in Education
See All in Education
私たちはなんでテストするんだっけ? Ver.東北IT物産展2026 in 会津若松
camel_404
3
190
FA26 CLU MS Clinical Psychology New Student Orientation
jdbedics
0
170
Modulo : abc
robintux
0
190
チームの鏡になるー自分の癖を知ると、チームのパターンが見えてくる@スクフェス仙台
saorimurooka
0
180
AI-Based Speaking Assessment of a Short-Term Study Abroad Program
uranoken
0
500
マークシート試験のTeX言語を用いた自動採点について
doratex
0
3.8k
遊ぶかね欲しさの犯行(ルビ:労働)です
shirayanagiryuji
0
270
観察、仮説、実行、検証、計画、提案を一年で3000回トレーニングする方法/3000 Thinking Loops in 365 Days
moriyuya
5
1.3k
[2026前期火5] 論理学(京都大学文学部 前期 第11回)「ハーモニー:三層モデルと保存拡大」
yatabe
0
290
Tema 1. El relieve de España: Formación y características
juanmartin2026
0
20k
CLASSIFICATION OF CRUDE DRUGS
pawan_pharm
0
190
Science Tokyo University for International Research Excellence scheme_April 2026
sciencetokyo
PRO
0
210
Featured
See All Featured
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.6k
brightonSEO & MeasureFest 2025 - Christian Goodrich - Winning strategies for Black Friday CRO & PPC
cargoodrich
3
850
Side Projects
sachag
456
43k
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
67
58k
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
1
1.6k
Documentation Writing (for coders)
carmenintech
77
5.5k
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.4k
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
240
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
730
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
10k
Measuring & Analyzing Core Web Vitals
bluesmoon
9
1k
The untapped power of vector embeddings
frankvandijk
2
1.9k
Transcript
AWS4 DOCKER axi-sugiki
#!$( ◦ Docker ◦ OS ") ◦
'% ◦ Kubernetes ◦ & ◦ * + , '% 2
Docker ◦ '$OS %- ◦ 3Containers4 ◦ 12,03$"/(4 %-
◦ ! &# &3EC24 + 3 )* &3)*  OS (Linux/win) OS (Linux/win) Docker Engine3OS  EC2 EC2 OS. (OS&#) . (&#)
Docker $%"01/31 ◦ EC2$$ &+ ◦ )-EC2$$ 1(/' ◦
AMI3Amazon Linux 2 AMI(64 bit, x86) ◦ $$3t2.medium(2, 4GiB) ◦ !"%3Web Security Group ◦ 3 ◦ Name3docker-0 %*1 ◦ Owner3 0 %*1 ◦ %3 ◦ ,.&+2$#% 4
Docker "#-2/3. ◦ Tera Term EC2 ""(+ ◦ /EC2IP ◦
#%/ec2-user ◦ #/-*). ◦ RSA/DSA, $/ ◦ "!## '& 5
Docker -3/3. ◦ Tera Term%(#/' ") $ sudo yum install
docker –y -Docker . $ sudo systemctl start docker -Docker+!. $ sudo usermod –aG docker ec2-user -ec2-user docker, . ◦ & /Tera Term%( ◦ * /$ ◦ $ docker ps 6
DockerD ='A1/2B ◦ 3% ='Acontainer runB 7
='*" Acontainer runB .;9 &@A--rmB $ .; /2A ,), echoB !1- A ,), centosB !<85 C DockerHub ! .;:4 2+7#? .;>A !(06 B
Docker@$;*>2/2? ◦ GitHub60DockerHub&+1 8 DockerHub >$" ? /bin/echo “Hello, Docker!”
#&!:73 >Docker.)4? %-95, Docker & EC2AMI60 Docker$><=-95,? $;* EC2$$;* 60 -9 &pull <=5,' $/2(-9 run$ pull 8*-9
Docker>,;1/2< ◦ /2;search< ◦ "*;image pull< 9 /2$ ;search< /2
97# 5-41 .&= )%+' ;6 08 !: < "*$;image pull< # container run"*(3
Docker& $2/2% ◦ ! $image ls% ◦
#$image rm% 10 " ! ! $image ls% #$image rm% # DockerHub
DockerS/ $!0,/K6O1/2P ◦ / $K6Ocontainer runP 11 / $K6;1 Ocontainer
runP !0,/K6@HO-dP )0"E8*&/O-p host:containerP O("80E/ $80E5? P / $:4 O<9Qtest-nginxP +0: O<9QnginxP !0,/OdaemonPS %-/# K6 CB '.R M> 2A Q=<9QI6F3K6R ODLS.7NQGJQ0% P
Docker9 ! 5&62/27 ◦ 5&# "4 '.6container ps7
12 5& "4'. *$6container ps7 ID 63&% -7 !) 5&1 /, )6/, +( 83 &% -7 ! % - EC2 IP 02 8Web!6nginx75&
Docker. " ◦ #+container stop, ◦ #'&$+container ps -a, ◦
*+container rm, 13 # +container stop, ID+), container ps-a ( ID+), * +rm, % !* -docker container rm –f [name or id]
Docker@# 2:4 ;(=1/2> ◦ # 2:4 ;(=TTY36> 14 #& !
&195 #08,%=run> 2:4;(=-it> # +' = -*?centos> $+ #& 08 # #& ls#08 Ctrl-p?Ctrl-q #&<7 ="##/ .)> "# #& .)
Docker/ '"(,2/2- ◦ ( & ◦ $,container attach-
◦ *,container rm- 15 +%,detach- .( $,container attach- ID, )- #, !- *,container rm-
# ◦ WordPress4$ ◦ ,0 ◦ '3 ◦
MySQL86 +17 ◦ WordPress8Web6 (!7 ◦ TensorFlow4$ ◦ TensorFlow5/.& ,0 ◦ "*DLAMI-2 %.& ) 16
-*+FWordPressA.C1/3D ◦ MySQLC' 'D&A. ◦ WordPress&A. 17 <23754C-eD C%'/@39 D
#'54 C10E'$&554E ) latest(:8;) D "',B54C-p host:guestD !80=&80= 6? test-mysql& mysql& 6?5> MySQL& WordPress&(A.
'$%?WordPress:*=2/3> ◦ WordPress(28, ◦ EC2 IP15 18 IP &)
79 <0 " #+ ;-8, # =. !/6> # &) 34 !! !
1WordPress +.3/3/ ◦ WordPress + 19 *&$- '!($- /wp-login.php )
# 0% ,WordPress"
3TensorFlow /"11/22 ◦ TensorFlow Docker /" ◦ /" +. ◦
Jupyter Notebook (, #' 20 ! %1container logs2 *&(,URL! 1$ 0 localhost-)2
%#$?TensorFlow 7(<2/2= ◦ Tera TermSSH896+<"' )/= ◦ !?!88882 ◦ !?!88882>127.0.0.1
◦ WebJupyter ,5 21 &1 >4.;TensorFlow :30*-
&6>Docker Desktop for Windows/Mac ◦ DockerPC 5! '7 ◦ Community
Edition;2"< =%# 07/ ◦ Docker - +8 ◦ Windows Hyper-V=Mac HyperKit3 ◦ Linux 4.+8)( 1:= *, ◦ Kubernetes 9$'7 22
◦ EC2
23