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.

From zero to hero with running your asp.net core 1 application in a docker container

977 views

Published on

DDC .NET Developer Conference session about ASP.NET Core with Docker

Published in: Technology
  • Be the first to comment

  • Be the first to like this

From zero to hero with running your asp.net core 1 application in a docker container

  1. 1. From zero to hero Running your ASP.NET Core application in a Docker container Maurice de Beijer @mauricedb
  2. 2. Who am I? • Maurice de Beijer • The Problem Solver • Microsoft Azure MVP • Freelance developer/instructor • Twitter: @mauricedb • Web: http://www.TheProblemSolver.nl • E-mail: maurice.de.beijer@gmail.com
  3. 3. Overview • What are containers • Why use container technology? • What is Docker • Creating and running Docker images • Running an ASP.NET Core App in a Docker container • But we need more
  4. 4. What is a container?
  5. 5. Once upon a ship
  6. 6. Loading cargo the old way
  7. 7. A container ship these days
  8. 8. Loading is a bit faster
  9. 9. Running virtual machines
  10. 10. Virtual Machines vs Containers
  11. 11. Namespaces Cgroups Union file system
  12. 12. What is Docker?
  13. 13. Docker Hub
  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 
  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
  16. 16. Buildingcontainers
  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)
  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)
  19. 19. Orchestration
  20. 20. DockerCompose
  21. 21. TheminimalDockerfile
  22. 22. DockeronWindows
  23. 23. Containers can be great…

×