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
960
コンテナビルド最新事情 2022年度版 / Container Build 2022
inductor
3
460
データベースとストレージのレプリケーション入門 / 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
PHPカンファレンス名古屋-テックリードの経験から学んだ設計の教訓
hayatokudou
2
520
Reading Code Is Harder Than Writing It
trishagee
2
110
わたしがEMとして入社した「最初の100日」の過ごし方 / EMConfJp2025
daiksy
4
1.2k
ホワイトボードチャレンジ 説明&実行資料
ichimichi
0
130
Cloud Spanner 導入で実現した快適な開発と運用について
colopl
1
940
Apache Iceberg Case Study in LY Corporation
lycorptech_jp
PRO
0
200
プロダクトエンジニア 360°フィードバックを実施した話
hacomono
PRO
0
130
Culture Deck
optfit
0
510
オブザーバビリティの観点でみるAWS / AWS from observability perspective
ymotongpoo
9
1.7k
プロダクトエンジニア構想を立ち上げ、プロダクト志向な組織への成長を続けている話 / grow into a product-oriented organization
hiro_torii
1
310
Autonomous Database Serverless 技術詳細 / adb-s_technical_detail_jp
oracle4engineer
PRO
17
45k
コンピュータビジョンの社会実装について考えていたらゲームを作っていた話
takmin
1
520
Featured
See All Featured
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
Mobile First: as difficult as doing things right
swwweet
223
9.4k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
30
2.2k
[RailsConf 2023] Rails as a piece of cake
palkan
53
5.3k
A better future with KSS
kneath
238
17k
Testing 201, or: Great Expectations
jmmastey
42
7.2k
Facilitating Awesome Meetings
lara
52
6.2k
We Have a Design System, Now What?
morganepeng
51
7.4k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
3.7k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
49
2.3k
Building a Scalable Design System with Sketch
lauravandoore
461
33k
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/