Ce diaporama a bien été signalé.
Nous utilisons votre profil LinkedIn et vos données d’activité pour vous proposer des publicités personnalisées et pertinentes. Vous pouvez changer vos préférences de publicités à tout moment.
From zero to hero
Running your ASP.NET Core
application in a Docker container
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?
Once upon a ship
Loading cargo the old way
A container ship these days
Loading is a bit faster
Running virtual machines
Virtual Machines vs Containers
Namespaces
Cgroups
Union file system
What is Docker?
Docker Hub
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
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 ...
Orchestration
DockerCompose
TheminimalDockerfile
DockeronWindows
Containers can be great…
From zero to hero with running your asp.net core 1 application in a docker container
From zero to hero with running your asp.net core 1 application in a docker container
From zero to hero with running your asp.net core 1 application in a docker container
From zero to hero with running your asp.net core 1 application in a docker container
From zero to hero with running your asp.net core 1 application in a docker container
From zero to hero with running your asp.net core 1 application in a docker container
From zero to hero with running your asp.net core 1 application in a docker container
From zero to hero with running your asp.net core 1 application in a docker container
From zero to hero with running your asp.net core 1 application in a docker container
From zero to hero with running your asp.net core 1 application in a docker container
From zero to hero with running your asp.net core 1 application in a docker container
From zero to hero with running your asp.net core 1 application in a docker container
From zero to hero with running your asp.net core 1 application in a docker container
From zero to hero with running your asp.net core 1 application in a docker container
From zero to hero with running your asp.net core 1 application in a docker container
Prochain SlideShare
Chargement dans…5
×

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

999 vues

Publié le

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

Publié dans : Technologie
  • Soyez le premier à commenter

  • Soyez le premier à aimer ceci

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…

×