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
docker-for-beginners
Search
Kohei Ota
February 11, 2019
Technology
0
270
docker-for-beginners
Kohei Ota
February 11, 2019
Tweet
Share
More Decks by Kohei Ota
See All by Kohei Ota
CloudNative Meets WebAssembly: Exploring Wasm's Potential to Replace Containers
inductor
3
2.2k
The Cloud Native Chronicles: 10 Years of Community Growth Inside and Outside Japan
inductor
0
120
Cracking the KubeCon CfP
inductor
2
550
KubeCon Recap -Platform migration at Scale-
inductor
1
970
コンテナビルド最新事情 2022年度版 / Container Build 2022
inductor
3
480
データベースとストレージのレプリケーション入門 / Intro-of-database-and-storage-replication
inductor
26
6.2k
KubeConのケーススタディから振り返る、Platform for Platforms のあり方と その実践 / Lessons from KubeCon case studies: Platform for Platforms and its practice
inductor
3
800
オンラインの技術カンファレンスを安定稼働させるための取り組み / SRE activity for online conference platform
inductor
1
1.2k
Kubernetesネットワーキング初級者脱出ガイド / Kubernetes networking beginner's guide
inductor
19
6.1k
Other Decks in Technology
See All in Technology
Two Blades, One Journey: Engineering While Managing
ohbarye
4
2.2k
Ruby on Railsで持続可能な開発を行うために取り組んでいること
am1157154
3
160
データエンジニアリング領域におけるDuckDBのユースケース
chanyou0311
9
2.3k
マーケットプレイス版Oracle WebCenter Content For OCI
oracle4engineer
PRO
3
530
わたしがEMとして入社した「最初の100日」の過ごし方 / EMConfJp2025
daiksy
14
5.2k
Snowflakeの開発・運用コストをApache Icebergで効率化しよう!~機能と活用例のご紹介~
sagara
1
490
Oracle Database Technology Night #87-1 : Exadata Database Service on Exascale Infrastructure(ExaDB-XS)サービス詳細
oracle4engineer
PRO
1
190
JAWS DAYS 2025 アーキテクチャ道場 事前説明会 / JAWS DAYS 2025 briefing document
naospon
0
2.5k
JavaにおけるNull非許容性
skrb
2
2.7k
AIエージェント入門
minorun365
PRO
32
19k
IAMのマニアックな話2025
nrinetcom
PRO
6
1.2k
スキルだけでは満たせない、 “組織全体に”なじむオンボーディング/Onboarding that fits “throughout the organization” and cannot be satisfied by skills alone
bitkey
0
190
Featured
See All Featured
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
27
1.9k
Fashionably flexible responsive web design (full day workshop)
malarkey
406
66k
Testing 201, or: Great Expectations
jmmastey
42
7.2k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
45
9.4k
Building an army of robots
kneath
303
45k
KATA
mclloyd
29
14k
Fontdeck: Realign not Redesign
paulrobertlloyd
83
5.4k
The Power of CSS Pseudo Elements
geoffreycrofte
75
5.5k
Navigating Team Friction
lara
183
15k
How GitHub (no longer) Works
holman
314
140k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
49
2.3k
Reflections from 52 weeks, 52 projects
jeffersonlam
348
20k
Transcript
https://hub.docker.com/signup でIDの作成をお願いします。
ブラウザだけでOK! 触ってやってみる はじめてのDOCKER インフラ勉強会 2019/02/11 Presented by @inductor
今日話すこと 自己紹介 Dockerについて Dockerの3原則 ローカルでDockerを試す方法 ブラウザでDockerを動かしてみよう!
自己紹介 Twitter: @_inductor_ GitHub/Qiita: @inductor SRE Engineer @ ZOZO Technologies,
Inc. Organizer @ Docker Meetup Tokyo / Cloud Native Days(ex-JKD)
DOCKERについて
Dockerってなに? コンテナ型のアプリケーション実行基盤 dotCloud社が、自社のPaaS(Platform as a Service)環境を作るために開発した基盤 今のDocker社の前身 軽量で、起動からアプリケーションの実行まで を非常に高速に行うことができる
コンテナ型仮想化ってなに? コンテナとは アプリケーションの実行に必要な環境を一つの パッケージにまとめた仮想的な単位 ※プログラミング言語の実行環境、依存関係のあるライブラリ、アプリケー ション本体など OSよりも上のレイヤを、「Linuxカーネル」を利 用して再現する仮想化の方法 Linuxカーネルの機能を共用で使って、複数の環境 を1つのホスト上で動かすことができる。
LINUXカーネルとDOCKERコンテナ の実行環境さえあれば、どこでも 同じことが再現できるね!という のが強み(※一部例外あり)
None
Dockerの特徴 OSはホストのものを使うので、アプリケーション の立ち上げまでが高速 後述するDockerイメージと呼ばれるパッケージン グシステムのおかげで、アプリケーションのデプ ロイや実行が非常に簡単になる ロゴがかわいい
Dockerイメージとは Dockerコンテナを動かすのに必要なファイルシス テム どんなファイルをどこに置いて、何を実行するの かなどが複数のレイヤに渡って表現される Dockerイメージを実際に動かしたものがDocker コンテナ
DOCKERの3原則
None
Build Dockerイメージを作成すること Dockerfileと呼ばれるファイルを作って、Docker イメージのビルドを行う テキストファイルなので、Gitで管理できることも 大きなメリット(Infrastructure as Code化できる) 「Dockerでどんなことをやりたいか」を書くため、 非常に重要な概念
docker build
Ship 作成したDockerイメージを配布すること 一般的にはDocker Hubなどのコンテナレジストリを 使う Dockerイメージを管理、シェアするためのリポジトリ (GitHubのDocker版) docker push &
docker pull
Run 配布されたDockerイメージを、実際に実行すること サーバー上やローカルマシンで全く同じことができる ね!すごいね!と体験するところ docker run
ローカルでDOCKERを動かす方法
Windows Docker for Windowsを使う Windows Subsystem for Linux(WSL)を使うとよりそ れっぽくなる Mac
Docker for Macを使う Linux Docker CEを入れる Other UNIX 知らない
今日はブラウザだけでOK!
https://labs.play-with-docker.com/