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
540
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
Raycast AI APIを使ってちょっと便利な拡張機能を作ってみた / created-a-handy-extension-using-the-raycast-ai-api
kawamataryo
0
210
Perlの生きのこり - エンジニアがこの先生きのこるためのカンファレンス2025
kfly8
2
270
"TEAM"を導入したら最高のエンジニア"Team"を実現できた / Deploying "TEAM" and Building the Best Engineering "Team"
yuj1osm
1
130
技術スタックだけじゃない、業務ドメイン知識のオンボーディングも同じくらいの量が必要な話
niftycorp
PRO
0
100
Pwned Labsのすゝめ
ken5scal
1
390
RemoveだらけのPHPUnit 12に備えよう
cocoeyes02
0
270
内製化を加速させるlaC活用術
nrinetcom
PRO
2
140
IAMポリシーのAllow/Denyについて、改めて理解する
smt7174
2
200
AWSではじめる Web APIテスト実践ガイド / A practical guide to testing Web APIs on AWS
yokawasa
7
660
Active Directory攻防
cryptopeg
PRO
8
5.4k
AWS Well-Architected Frameworkで学ぶAmazon ECSのセキュリティ対策
umekou
2
140
偏光画像処理ライブラリを作った話
elerac
1
170
Featured
See All Featured
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
226
22k
The MySQL Ecosystem @ GitHub 2015
samlambert
250
12k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
27
1.6k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
40
2k
Become a Pro
speakerdeck
PRO
26
5.2k
How GitHub (no longer) Works
holman
314
140k
A designer walks into a library…
pauljervisheath
205
24k
Build your cross-platform service in a week with App Engine
jlugia
229
18k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
233
17k
Building an army of robots
kneath
303
45k
Stop Working from a Prison Cell
hatefulcrawdad
267
20k
GraphQLとの向き合い方2022年版
quramy
44
14k
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/