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.

Docker for .net developer

2,500 views

Published on

Docker for .net developer, Container, Hyper-V, Docker Tool for VS, Windows Container, Images, Layer, Docker architecture, What is Docker, Docker Engine

Published in: Software
  • Be the first to comment

Docker for .net developer

  1. 1. DOCKER for .NET Developers Ha Noi .NET Group – Docker-Hanoi
  2. 2. ABOUT ME  QuanTruong Anh  Current:  R&DSpecialist – R&D Department  IT Center –Vietcombank  Previous:  ProjectTech Lead – FPT Software  Community I joined  AgileVietnam  Docker-Hanoi  Ha Noi .NETGroup  Contact:  Facebook: /quanta.vn  Email: quan.truong.anh@gmail.com
  3. 3. AGENDA  What is Docker  Docker Benefits for Developers  Docker onWindows  Docker for ASP.NET Developers
  4. 4. WHAT IS DOCKER
  5. 5. WHAT IS DOCKER… Virtual Machines Containers http://www.docker.com/what-docker
  6. 6. WHAT IS DOCKER… Docker Engine https://docs.docker.com/engine/understanding-docker/  is a client-server application  with these major components:  A server which is a type of long-running program called a daemon process.  A REST API which specifies interfaces that programs can use to talk to the daemon and instruct it what to do.  A command line interface (CLI) client.
  7. 7. WHAT IS DOCKER… Docker’s architecture When you run a container  $ docker run -i -t ubuntu /bin/bash  Docker Engine does the following:  Pulls the ubuntu image  Creates a new container  Allocates a filesystem and mounts a read-write layer  Allocates a network / bridge interface  Sets up an IP address  Executes a process that you specify  Captures and provides application output
  8. 8. WHAT IS DOCKER… Docker’s architecture When you run a container  $ docker run -i -t ubuntu /bin/bash  Docker Engine does the following:  Pulls the ubuntu image  Creates a new container  Allocates a filesystem and mounts a read-write layer  Allocates a network / bridge interface  Sets up an IP address  Executes a process that you specify  Captures and provides application output
  9. 9. WHAT IS DOCKER… Images and layers  Each Docker image references a list of read-only layers that represent filesystem differences.  Layers are stacked on top of each other to form a base for a container’s root filesystem.
  10. 10. WHAT IS DOCKER… Build your own images
  11. 11. WHAT IS DOCKER… Updating and committing an image Building an image from a Dockerfile
  12. 12. WHAT IS DOCKER…
  13. 13. WHAT IS DOCKER… Container and layers
  14. 14. WHAT IS DOCKER… Container and layers
  15. 15. WHAT IS DOCKER… Data volumes and the storage driver  When a container is deleted, any data written to the container that is not stored in a data volume is deleted along with the container.  A data volume is a directory or file in the Docker host’s filesystem that is mounted directly into a container.  Reads and writes to data volumes bypass the storage driver and operate at native host speeds.
  16. 16. DOCKER BENEFITS FOR DEVELOPERS  Write once, deploy anywhere  Docker is a platform for developers and sysadmins to develop, ship, and run applications.  Docker lets you quickly assemble applications from components and eliminates the friction that can come when shipping code.  Docker lets you get your code tested and deployed into production as fast as possible.
  17. 17. DOCKER BENEFITS FOR DEVELOPERS AGILITY Developers have the freedom to define environments, and the ability to create and deploy apps faster and easier. CONTROL Developers own all the code from infrastructure to app. PORTABILITY Docker gives you choice without complexity, from a laptop to a team, to private infrastructure and public cloud providers. CI/CD Enable developers to develop and test applications more quickly and within any environment
  18. 18. DOCKER ONWINDOWS DockerToolbox https://docs.docker.com/toolbox/ Docker forWindows https://docs.docker.com/docker-for-windows/
  19. 19. WINDOWS CONTAINERS Windows Server Containers Hyper-V Containers https://aka.ms/containers
  20. 20. WINDOWS CONTAINERS Windows Server Containers https://aka.ms/containers HostOperating System Windows Server container Hyper-V container Windows Server 2016 Full UI Server Core image Nano Server image Windows Server 2016 Core Server Core image Nano Server image Windows Server 2016 Nano Nano Server image Nano Server image Windows 10 Insider Releases Not Available Nano Server image
  21. 21. WINDOWS CONTAINERS SAMPLES Windows Server Core Nano server https://aka.ms/containers
  22. 22. WINDOWS CONTAINERS SAMPLES https://aka.ms/containers
  23. 23. WINDOWS CONTAINERS SAMPLES https://aka.ms/containers
  24. 24. WINDOWS CONTAINERS SAMPLES https://aka.ms/containers
  25. 25. DOCKER FOR ASP.NET DEVELOPERS DockerTools forVisual Studio https://aka.ms/DockerToolsForVS
  26. 26. DOCKER FOR ASP.NET DEVELOPERS Docker Extension forVisual Studio Code https://aka.ms/DockerToolsForVSCode
  27. 27. DOCKER FOR ASP.NET DEVELOPERS Developing and debugging apps in Docker container https://aka.ms/DockerToolsForVSCode
  28. 28. DOCKER FOR ASP.NET DEVELOPERS Docker Extension forVisual Studio Code https://aka.ms/DockerToolsForVSCode
  29. 29. WHAT’S NEXT

×