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
73
AWS演習(未実施)- EMR・MapReduce
axisugiki
1
29
AWS演習_未7.pdf
axisugiki
0
53
Other Decks in Education
See All in Education
人間のために、人間と共に働く時代の終わりの始まり
frievea
0
230
Introduction - Lecture 1 - Human-Computer Interaction (1023841ANR)
signer
PRO
0
3.5k
Sekolah Sabat - Triwulan 4 2026 - Pelajaran 1
hiola
0
13k
【新規入学者様】ZEPメタバース校舎ガイド
ainischool
0
200
響け!ユーフォニアムと考える「決め方」/Thinking About Decision-Making with Sound! Euphonium
3l4l5
1
200
未踏峰連山 Frontiers: Creating and Conquering Untrodden Peaks
ishii_mit
1
170
エビデンスベースト英語教育入門:エビデンスは科学的知見(だけ)ではない,制度だ!
terasawat
0
230
AIでアウトプットできる時代だからこそ、自分の言葉で考えることの大切さ / What's Left to Think, When AI Can Write?
masakiokuda
1
360
実践プレゼンテーション・デザイン
dragon2
1
420
Carbohydrates: Classification, Structure & Chemical Properties
pawan_pharm
0
330
LEGO Geometry Tutorial
arnoknobbe
0
720
1人 × AI、1か月でここまで作れる ー 数年前の外注換算3.8〜7.4億円・241〜379人月分の作業を、AI費用 約10万円・31日で
frievea
0
580
Featured
See All Featured
Sam Torres - BigQuery for SEOs
techseoconnect
PRO
0
580
Scaling GitHub
holman
464
140k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
56
3.5k
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
2
310
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
35k
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
460
Abbi's Birthday
coloredviolet
4
10k
Art, The Web, and Tiny UX
lynnandtonic
304
22k
How GitHub (no longer) Works
holman
316
150k
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
1
340
Discover your Explorer Soul
emna__ayadi
2
1.3k
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