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
280
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
4
2.8k
The Cloud Native Chronicles: 10 Years of Community Growth Inside and Outside Japan
inductor
0
130
Cracking the KubeCon CfP
inductor
2
620
KubeCon Recap -Platform migration at Scale-
inductor
1
1k
コンテナビルド最新事情 2022年度版 / Container Build 2022
inductor
3
520
データベースとストレージのレプリケーション入門 / Intro-of-database-and-storage-replication
inductor
28
6.3k
KubeConのケーススタディから振り返る、Platform for Platforms のあり方と その実践 / Lessons from KubeCon case studies: Platform for Platforms and its practice
inductor
3
850
オンラインの技術カンファレンスを安定稼働させるための取り組み / SRE activity for online conference platform
inductor
1
1.3k
Kubernetesネットワーキング初級者脱出ガイド / Kubernetes networking beginner's guide
inductor
22
6.4k
Other Decks in Technology
See All in Technology
AI導入の理想と現実~コストと浸透〜
oprstchn
0
150
Zephyr RTOSを使った開発コンペに参加した件
iotengineer22
0
110
250627 関西Ruby会議08 前夜祭 RejectKaigi「DJ on Ruby Ver.0.1」
msykd
PRO
2
370
変化する開発、進化する体系時代に適応するソフトウェアエンジニアの知識と考え方(JaSST'25 Kansai)
mizunori
1
260
Connect 100+を支える技術
kanyamaguc
0
150
GeminiとNotebookLMによる金融実務の業務革新
abenben
0
240
Should Our Project Join the CNCF? (Japanese Recap)
whywaita
PRO
0
290
マーケットプレイス版Oracle WebCenter Content For OCI
oracle4engineer
PRO
3
930
Tech-Verse 2025 Global CTO Session
lycorptech_jp
PRO
0
1.1k
KubeCon + CloudNativeCon Japan 2025 に行ってきた! & containerd の新機能紹介
honahuku
0
110
自律的なスケーリング手法FASTにおけるVPoEとしてのアカウンタビリティ / dev-productivity-con-2025
yoshikiiida
0
280
KubeCon + CloudNativeCon Japan 2025 Recap Opening & Choose Your Own Adventureシリーズまとめ
mmmatsuda
0
230
Featured
See All Featured
[RailsConf 2023] Rails as a piece of cake
palkan
55
5.6k
The Language of Interfaces
destraynor
158
25k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
53k
Done Done
chrislema
184
16k
Bootstrapping a Software Product
garrettdimon
PRO
307
110k
A Modern Web Designer's Workflow
chriscoyier
694
190k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
31
1.3k
The Cult of Friendly URLs
andyhume
79
6.5k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
138
34k
Optimizing for Happiness
mojombo
379
70k
Intergalactic Javascript Robots from Outer Space
tanoku
271
27k
Optimising Largest Contentful Paint
csswizardry
37
3.3k
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/