the busy developers guide to docker
TRANSCRIPT
![Page 1: The busy developers guide to Docker](https://reader034.vdocument.in/reader034/viewer/2022051123/587b42231a28ab9c0e8b5e83/html5/thumbnails/1.jpg)
The busy developers guide to Docker
Maurice de Beijer @mauricedb
![Page 2: The busy developers guide to Docker](https://reader034.vdocument.in/reader034/viewer/2022051123/587b42231a28ab9c0e8b5e83/html5/thumbnails/2.jpg)
2
Who am I?
• Maurice de Beijer• The Problem Solver• Microsoft Azure MVP• Freelance developer/instructor• Twitter: @mauricedb and @React_Tutorial• Web:http://www.TheProblemSolver.nl• E-mail: [email protected]
![Page 3: The busy developers guide to Docker](https://reader034.vdocument.in/reader034/viewer/2022051123/587b42231a28ab9c0e8b5e83/html5/thumbnails/3.jpg)
3
Overview
• What are containers• Why use container technology?• What is Docker• Creating and running Docker images• Running an ASP.NET Core 1.0 App in a Docker
container• But we need more
![Page 4: The busy developers guide to Docker](https://reader034.vdocument.in/reader034/viewer/2022051123/587b42231a28ab9c0e8b5e83/html5/thumbnails/4.jpg)
4
What is a container?
![Page 5: The busy developers guide to Docker](https://reader034.vdocument.in/reader034/viewer/2022051123/587b42231a28ab9c0e8b5e83/html5/thumbnails/5.jpg)
5
Once upon a ship
![Page 6: The busy developers guide to Docker](https://reader034.vdocument.in/reader034/viewer/2022051123/587b42231a28ab9c0e8b5e83/html5/thumbnails/6.jpg)
6Loading cargo the old way
![Page 7: The busy developers guide to Docker](https://reader034.vdocument.in/reader034/viewer/2022051123/587b42231a28ab9c0e8b5e83/html5/thumbnails/7.jpg)
7
A container ship these days
![Page 8: The busy developers guide to Docker](https://reader034.vdocument.in/reader034/viewer/2022051123/587b42231a28ab9c0e8b5e83/html5/thumbnails/8.jpg)
8
Loading is a bit faster
![Page 9: The busy developers guide to Docker](https://reader034.vdocument.in/reader034/viewer/2022051123/587b42231a28ab9c0e8b5e83/html5/thumbnails/9.jpg)
9
Running virtual machines
![Page 10: The busy developers guide to Docker](https://reader034.vdocument.in/reader034/viewer/2022051123/587b42231a28ab9c0e8b5e83/html5/thumbnails/10.jpg)
Virtual Machines vs Containers
10
![Page 11: The busy developers guide to Docker](https://reader034.vdocument.in/reader034/viewer/2022051123/587b42231a28ab9c0e8b5e83/html5/thumbnails/11.jpg)
11
NamespacesCgroupsUnion file system
![Page 12: The busy developers guide to Docker](https://reader034.vdocument.in/reader034/viewer/2022051123/587b42231a28ab9c0e8b5e83/html5/thumbnails/12.jpg)
What is Docker?
12
![Page 13: The busy developers guide to Docker](https://reader034.vdocument.in/reader034/viewer/2022051123/587b42231a28ab9c0e8b5e83/html5/thumbnails/13.jpg)
Docker Hub
13
![Page 14: The busy developers guide to Docker](https://reader034.vdocument.in/reader034/viewer/2022051123/587b42231a28ab9c0e8b5e83/html5/thumbnails/14.jpg)
14
Why use Docker?
• Package an application with it’s dependencies• Dev environment behaves exactly like production• Less overhead means more deployments on a server• Deploy the same container in different clouds• Not just for cloud computing• Docker has standardized container formats• It’s open source
![Page 15: The busy developers guide to Docker](https://reader034.vdocument.in/reader034/viewer/2022051123/587b42231a28ab9c0e8b5e83/html5/thumbnails/15.jpg)
15
Some other Docker Use Cases
• Simulate deployed environment during development– Each container simulates a machine
• Share containers between developers– Database containers with sample data• Also use in the (automated) QA environment
– Build containers with compilers and libraries• Also use in the CI environment
![Page 16: The busy developers guide to Docker](https://reader034.vdocument.in/reader034/viewer/2022051123/587b42231a28ab9c0e8b5e83/html5/thumbnails/16.jpg)
16
Build
ing
cont
aine
rs
![Page 17: The busy developers guide to Docker](https://reader034.vdocument.in/reader034/viewer/2022051123/587b42231a28ab9c0e8b5e83/html5/thumbnails/17.jpg)
17
Useful docker image commands
• docker images• docker pull <image name>• docker build –t <image name> <folder>• docker run <image name>• docker rmi <image id>• docker rmi $(docker images -q -f dangling=true)
![Page 18: The busy developers guide to Docker](https://reader034.vdocument.in/reader034/viewer/2022051123/587b42231a28ab9c0e8b5e83/html5/thumbnails/18.jpg)
18
Useful docker container commands
• Docker ps• docker logs <container name>• docker stop <container name>• docker start <container name>• docker kill <container id>• docker rm <container id>• docker rm $(docker ps -a -q)
![Page 19: The busy developers guide to Docker](https://reader034.vdocument.in/reader034/viewer/2022051123/587b42231a28ab9c0e8b5e83/html5/thumbnails/19.jpg)
19
![Page 20: The busy developers guide to Docker](https://reader034.vdocument.in/reader034/viewer/2022051123/587b42231a28ab9c0e8b5e83/html5/thumbnails/20.jpg)
20
Orchestration
![Page 21: The busy developers guide to Docker](https://reader034.vdocument.in/reader034/viewer/2022051123/587b42231a28ab9c0e8b5e83/html5/thumbnails/21.jpg)
21
Dock
er C
ompo
se
![Page 22: The busy developers guide to Docker](https://reader034.vdocument.in/reader034/viewer/2022051123/587b42231a28ab9c0e8b5e83/html5/thumbnails/22.jpg)
22
![Page 23: The busy developers guide to Docker](https://reader034.vdocument.in/reader034/viewer/2022051123/587b42231a28ab9c0e8b5e83/html5/thumbnails/23.jpg)
23
The
min
imal
Doc
kerfi
le
![Page 24: The busy developers guide to Docker](https://reader034.vdocument.in/reader034/viewer/2022051123/587b42231a28ab9c0e8b5e83/html5/thumbnails/24.jpg)
24
ASP.
NET
Cor
e 1.
0 Ap
pon
Lin
ux
![Page 25: The busy developers guide to Docker](https://reader034.vdocument.in/reader034/viewer/2022051123/587b42231a28ab9c0e8b5e83/html5/thumbnails/25.jpg)
25
Dock
er o
n W
indo
ws
![Page 26: The busy developers guide to Docker](https://reader034.vdocument.in/reader034/viewer/2022051123/587b42231a28ab9c0e8b5e83/html5/thumbnails/26.jpg)
26
![Page 27: The busy developers guide to Docker](https://reader034.vdocument.in/reader034/viewer/2022051123/587b42231a28ab9c0e8b5e83/html5/thumbnails/27.jpg)
27
Containers can be great…
![Page 28: The busy developers guide to Docker](https://reader034.vdocument.in/reader034/viewer/2022051123/587b42231a28ab9c0e8b5e83/html5/thumbnails/28.jpg)
28
![Page 29: The busy developers guide to Docker](https://reader034.vdocument.in/reader034/viewer/2022051123/587b42231a28ab9c0e8b5e83/html5/thumbnails/29.jpg)
29…with the right tools!
![Page 30: The busy developers guide to Docker](https://reader034.vdocument.in/reader034/viewer/2022051123/587b42231a28ab9c0e8b5e83/html5/thumbnails/30.jpg)
30
![Page 31: The busy developers guide to Docker](https://reader034.vdocument.in/reader034/viewer/2022051123/587b42231a28ab9c0e8b5e83/html5/thumbnails/31.jpg)
31
![Page 32: The busy developers guide to Docker](https://reader034.vdocument.in/reader034/viewer/2022051123/587b42231a28ab9c0e8b5e83/html5/thumbnails/32.jpg)
32
![Page 33: The busy developers guide to Docker](https://reader034.vdocument.in/reader034/viewer/2022051123/587b42231a28ab9c0e8b5e83/html5/thumbnails/33.jpg)
33
![Page 34: The busy developers guide to Docker](https://reader034.vdocument.in/reader034/viewer/2022051123/587b42231a28ab9c0e8b5e83/html5/thumbnails/34.jpg)
34
![Page 35: The busy developers guide to Docker](https://reader034.vdocument.in/reader034/viewer/2022051123/587b42231a28ab9c0e8b5e83/html5/thumbnails/35.jpg)
35
![Page 36: The busy developers guide to Docker](https://reader034.vdocument.in/reader034/viewer/2022051123/587b42231a28ab9c0e8b5e83/html5/thumbnails/36.jpg)
36
![Page 37: The busy developers guide to Docker](https://reader034.vdocument.in/reader034/viewer/2022051123/587b42231a28ab9c0e8b5e83/html5/thumbnails/37.jpg)
37
![Page 38: The busy developers guide to Docker](https://reader034.vdocument.in/reader034/viewer/2022051123/587b42231a28ab9c0e8b5e83/html5/thumbnails/38.jpg)
38Maurice de Beijer - @mauricedb