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
what-is-container
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
hiroaki
July 25, 2022
Programming
120
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
what-is-container
hiroaki
July 25, 2022
More Decks by hiroaki
See All by hiroaki
leadership-that-endures-book-lt
hiroaki_u
0
36
プロダクト負債に立ち向かう
hiroaki_u
2
2.1k
pdm_vibe_coding_fail.pdf
hiroaki_u
0
220
Communication with Ubiquitous Language
hiroaki_u
0
110
how to determine architecture
hiroaki_u
1
290
the-concept-of-product-creation-learned-in-startup-science
hiroaki_u
0
190
difference-between-nginx-and-apache
hiroaki_u
0
92
CI_CD_by_Code_Brothers_by_AWS
hiroaki_u
0
60
think of study
hiroaki_u
1
120
Other Decks in Programming
See All in Programming
komatsuna「分散システムにおけるバグ分析手法」
komatsunaqa
0
280
Loosening the Reins: Go Generics Get More Flexible
kuro_kurorrr
0
330
Introducing Stack Pull Request in GitHub
kkamegawa
0
100
関東Kaggler会_NVIDIA_Nemotron_コンペ_振り返り
rick_ds
0
720
typoなんかねぇよ
raspython3
0
550
初めての模倣学習とVLA
natsutan
0
250
承認済みなのに差戻しできてしまうバグ、型で潰せます
shinchit
0
110
go-spidermonkeyでAIエージェントのCode Modeを実装する
syumai
2
1.2k
freee が目指す データ マネジメント戦略 AI-Ready 時代を支える 攻めのガバナンスとは
freee
PRO
0
490
tsc.rip を支える技術 / Kyoto.なんか #8
susisu
0
280
複数の Claude Code が"放置"されてしまう問題をCLI ダッシュボードを自作して解決した話
sumihiro3
1
730
プロポーザルを書いてもらう
pvcresin
0
580
Featured
See All Featured
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
1
1.9k
Faster Mobile Websites
deanohume
310
32k
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
3k
How to Grow Your eCommerce with AI & Automation
katarinadahlin
PRO
1
250
jQuery: Nuts, Bolts and Bling
dougneiner
66
8.6k
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
480
Tell your own story through comics
letsgokoyo
1
1k
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
67
57k
Git: the NoSQL Database
bkeepers
PRO
432
67k
A Tale of Four Properties
chriscoyier
163
24k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
10k
Transcript
コンテナってなんだ? hiroaki
Who am I ? 名前:hiroaki 技術:PHP/ Laravel, AWS 年齢:もうすぐ28歳 歴 :1年
趣味:筋トレ、サウナ
コンテナの話に入る前に・・・
サーバーで起こっていることを簡 単に確認してみましょう
アプリケーション ミドルウェア OS カーネル ハードウェア(CPU, メモリ等) デーモン ブートローダー デバイスドライバ シェル
GUI
OS ハードウェア(CPU, メモリ等) プロセス1 プロセス2 プロセス3 プロセス5 プロセス4 プロセス6
ミドルウェア プロセスを生成 カーネル 処理を実行 プロセス1 プロセス2 カーネルがプロセスを発行
プロセスを生成 プロセス発行する場所を分ける カーネル プロセス1 プロセス2 処理を実行
プロセス発行場所を分割 カーネル お互いのことは把握していない 全部把握
サーバー全体ではこんな感じ 引用:『軽くて使いやすい仮想化技術 「Docker」の仕組みとエンタープライズ 開発における4つの活用事例』
コンテナとは分離した プロセスの実行環境
Dockerとは?? コンテナを作り出すソフト
socket or API docker クライアント docker エンジン docker デーモン
コンテナはイメージから作られる 画像元:『アーキテクチャの理解(公式)』 docker run docker build docker run
隔離された実行環境 コンテナを作るソフト コンテナ Docker
コンテナが複数あるときを考える network volume
コンテナ複数立てるのは大変 network volume
複数コンテナを扱うスペシャリスト docker-compose
コンテナを複数立ち上げるのは大変 network volume
docker-composeなら余裕 docker-compose.yml
本番環境の運用を考える EC2 サーバーダウン
本番環境は冗長化するのが基本 同じコンテナ構成作るの面倒。。。
コンテナ オーケストレーションサービス Kubernetes ECS EKS
同じコンテナ構成をつくる
サーバーの構成を維持する
サーバーの構成を維持する ✨ ✨ ✨
隔離された実行環境 コンテナを作るソフト コンテナ Docker docker-compose ECS 複数コンテナを 実行するツール コンテナを管理するサービス
ご清聴ありがとうございました。
References ・仮想化技術 https://codezine.jp/article/detail/7894 Web Sites etc. ・ECS https://kws-cloud-tech.com/ https://www.slideshare.net/zembutsu/what-isdockerdoing ・Dockerのアーキテクチャ
https://www.ogis-ri.co.jp/otc/hiroba/technical/docker/part6.html https://knowledge.sakura.ad.jp/21387/ ・docker-compose https://docs.docker.jp/engine/introduction/understanding-docker.html