Developing apps in Windows Containers using Docker

Preview:

Citation preview

Developing apps in Windows Containers using Docker

@NaeemSarfraz #WindowsContainers

What can you expect?

▪ Learn all about what Containers are and why they exist

▪ How they will work in Windows

▪ The tools you’ll use (right now) to develop using them

– Including Visual Studio

▪ Lots of demos running Containers using Docker CLI + PowerShell

▪ Note: Not covering the Orchestration of Containers

▪ Disclaimer: Demos might not work as we’re Beta software

Who am I?

Solutions Architect

10+ years .Net Developer

Learn(new Things()).Like()

Play(Archery).Add(Horseriding}.Like()

@NaeemSarfraz

http://naeemsarfraz.net

@naeemsarfraz #WindowsContainers

@naeemsarfraz #WindowsContainers

@naeemsarfraz #WindowsContainers

http://bit.ly/1Tas78c

http://bit.ly/1rn0phS

http://bit.ly/1mM76oc

http://bit.ly/1rEropQ http://bit.ly/1VWxEG9

http://bit.ly/1rn5DKH

@naeemsarfraz #WindowsContainers

@naeemsarfraz #WindowsContainers

@naeemsarfraz #WindowsContainers

Enter Windows Server 2016

The Different Flavours

▪ Windows Server Core

▪ Windows Server Nano

▪ Windows 10 Pro + Ent

Windows Server Nano

▪ Optimised for the cloud

▪ 20X smaller than WS Core

▪ 80% fewer reboots

▪ 92% fewer critical bulletins

▪ Can be used as a:– Container Host– File Server– DNS Server– IIS Server

@naeemsarfraz #WindowsContainers

Containers Support in Windows Server 2016

Windows Server Containers Hyper-V Containers

@naeemsarfraz #WindowsContainers

How to get started?

Installing on Windows 10

@naeemsarfraz #WindowsContainers

Installing Windows Server 2016

▪ Download the ISO for the Evaluation Version

▪ Create a VM using the “Windows Server 2016 Datacenter” operating system

▪ Then follow these instructions: https://msdn.microsoft.com/en-us/virtualization/windowscontainers/quick_start/quick_start_windows_server

@naeemsarfraz #WindowsContainers

Install Visual Studio Tooling

@naeemsarfraz #WindowsContainers

Let’s run some containers…

Development Workflow

Deploy from

Registry

Push Docker

Image to

Registry

Integration

Tests

Build Code

& Docker

Image

Write &

Commit

Code

@naeemsarfraz #WindowsContainers

Docker Toolbox

@naeemsarfraz #WindowsContainers

Docker Toolbox

▪ Kitematic– GUI version of the Docker Engine

▪ Docker Registry– Collection of [non-]official Container images

▪ Docker Compose– Define multi-container application in one file

▪ Docker Machine– Helps to provision a host, and setup client tools

▪ Docker Swarm– Treat multiple hosts as a cluster

@naeemsarfraz #WindowsContainers

Orchestration

▪ Docker Swarm

▪ Others

– Helios from Spotify

– Mesos from MesoSphere

– Kubernetes from Google

▪ PaaS

– Azure Container Service

– Google Container Engine

– Amazon EC2 Container Service

@naeemsarfraz #WindowsContainers

Timeline and Upcoming Features

▪ Windows Server 2016

– Generally available soon, Evaluation RTM out now

▪ Visual Studio

– F5 launch, Edit & Refresh – in preview

– Debugging – in preview

– Add-in update for Windows Containers – ?

▪ Docker for Windows

– Beta program launched – April 2016

– Support for Windows Containers – in beta

▪ Containers to run desktop apps?

@naeemsarfraz #WindowsContainers

Thank You – Questions?

t: @NaeemSarfraz

e: Naeem.Sarfraz@gmail.com

Resources

▪ http://aka.ms/containers

▪ http://aka.ms/DockerToolsForVS

▪ MSDN Forums – Windows Containers

▪ Docker Forums – Docker for Windows

@naeemsarfraz #WindowsContainers

Recommended