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 developer guide to Docker

263 views

Published on

The busy developer guide to Docker presentation at Codemotion 2017 in Rome.

Published in: Technology
  • Be the first to comment

The busy developer guide to Docker

  1. 1. The busy developers guide to Docker Maurice de Beijer - @mauricedb ROME 24-25 MARCH 2017
  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 • Hosting a Docker image on Azure 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. 23
  24. 24. 24
  25. 25. DockeronWindows 25
  26. 26. Containers can be great… 26
  27. 27. 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. Maurice de Beijer - @mauricedb

×