Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
AWS演習(4)- Docker・OSコンテナ
Search
axi-sugiki
February 05, 2019
Education
0
44
AWS演習(4)- Docker・OSコンテナ
授業の演習で使用した資料です.一コマの演習,また2年生を対象とした演習で,1年生では専門教育を行わず,2年生から学部・学科に配属されるため,この辺りに水準を合わせています.
axi-sugiki
February 05, 2019
Tweet
Share
More Decks by axi-sugiki
See All by axi-sugiki
AWS演習(1)- EC2インスタンスの作成
axisugiki
0
70
AWS演習(2)- DLAMI・Jupyter Notebook・TensorFlow
axisugiki
0
48
AWS演習(3)- GitHub・ソーシャルコーディング
axisugiki
0
29
AWS演習(未実施)- Rekognition・Lambda・S3
axisugiki
0
70
AWS演習(未実施)- EMR・MapReduce
axisugiki
1
29
AWS演習_未7.pdf
axisugiki
0
52
Other Decks in Education
See All in Education
Human Perception and Colour Theory - Lecture 2 - Information Visualisation (4019538FNR)
signer
PRO
0
3k
小学校5,6年生向けキャリア教育 大人になるまでの道
sat
PRO
8
3.4k
Multimodal Interaction - Lecture 3 - Next Generation User Interfaces (4018166FNR)
signer
PRO
0
2k
P3NFEST 2026 Spring ハンズオン「ハッキング・ラブ!はじめてのハッキングをやってみよう」資料
nomizone
0
360
Gluon Recruit Deck
gluon
0
160
ブランチ操作 / 02-a-branch
kaityo256
PRO
0
210
2025-12-19-LT
takesection
0
120
実践的データサイエンス演習 分析・実験・検証の実践的管理方法@神奈川大学 (2025年度)
hidetoshikawaguchi
1
150
What workforce agencies must have in place to compete for and deliver on RESTART grants
territorium
PRO
0
120
JAPAN AI CUP Prediction Tutorial
upura
2
920
Going over the Edge
jonoalderson
0
790
滑空スポーツ講習会2025(実技講習)EMFT学科講習資料/JSA EMFT 2025
jsaseminar
0
310
Featured
See All Featured
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
0
160
4 Signs Your Business is Dying
shpigford
187
22k
Amusing Abliteration
ianozsvald
0
140
Visualization
eitanlees
150
17k
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
280
Odyssey Design
rkendrick25
PRO
2
560
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
320
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.4k
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
410
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
190
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
22k
Documentation Writing (for coders)
carmenintech
77
5.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