Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
The busy developers guide to Docker
Maurice de Beijer
@mauricedb
Who am I?
• Maurice de Beijer
• The Problem Solver
• Microsoft Azure MVP
• Freelance developer/instructor
• Twitter: @maur...
Overview
• What are containers
• Why use container technology?
• What is Docker
• Creating and running Docker images
• Run...
What is a container?
4
Once upon a ship
5
Loading cargo the old way6
A container ship these days
7
Loading is a bit faster
8
Running virtual machines
9
Virtual Machines vs Containers
10
Namespaces
Cgroups
Union file system
11
What is Docker?
12
Docker Hub
13
Why use Docker?
• Package an application with it’s dependencies
• Dev environment behaves exactly like production
• Less o...
Some other Docker Use Cases
• Simulate deployed environment during
development
– Each container simulates a machine
• Shar...
Buildingcontainers
16
Useful docker image commands
• docker images
• docker pull <image name>
• docker build –t <image name> <folder>
• docker r...
Useful docker container commands
• Docker ps
• docker logs <container name>
• docker stop <container name>
• docker start ...
19
Orchestration
20
DockerCompose
21
22
TheminimalDockerfile
23
24
DockeronWindows
25
26
Containers can be great…
27
28
29
30
31
32
33
34
35
36
37
38
Upcoming SlideShare
Loading in …5
×

The busy developers guide to Docker

235 views

Published on

The busy developers guide to Docker presentation at the QNH DevDays

Published in: Technology
  • Be the first to comment

The busy developers guide to Docker

  1. 1. The busy developers guide to Docker Maurice de Beijer @mauricedb
  2. 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: maurice.de.beijer@gmail.com 2
  3. 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 3
  4. 4. What is a container? 4
  5. 5. Once upon a ship 5
  6. 6. Loading cargo the old way6
  7. 7. A container ship these days 7
  8. 8. Loading is a bit faster 8
  9. 9. Running virtual machines 9
  10. 10. Virtual Machines vs Containers 10
  11. 11. Namespaces Cgroups Union file system 11
  12. 12. What is Docker? 12
  13. 13. Docker Hub 13
  14. 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  14
  15. 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 15
  16. 16. Buildingcontainers 16
  17. 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) 17
  18. 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) 18
  19. 19. 19
  20. 20. Orchestration 20
  21. 21. DockerCompose 21
  22. 22. 22
  23. 23. TheminimalDockerfile 23
  24. 24. 24
  25. 25. DockeronWindows 25
  26. 26. 26
  27. 27. Containers can be great… 27
  28. 28. 28
  29. 29. 29
  30. 30. 30
  31. 31. 31
  32. 32. 32
  33. 33. 33
  34. 34. 34
  35. 35. 35
  36. 36. 36
  37. 37. 37
  38. 38. 38

×