Docker and Windows: The State of the Union

Post on 19-Mar-2017

3.323 views 1 download

Transcript of Docker and Windows: The State of the Union

Docker and WindowsThe State of the Union

Elton Stoneman@EltonStoneman | elton@docker.com

• The Docker platform on Windows

• Limitations and differences

• Dockerizing Windows applications

• Running hybrid swarms

w3wp.exe nginx

w3wp.exe nginx

w3wp.exe nginx

PS C:>

:~$

.NET Fx

ASP.NET

Web App

Server Core

IIS

> docker build

# escape=`FROM microsoft/windowsservercoreSHELL ["powershell", "-Command"]

RUN Add-WindowsFeature Web-server, ` NET-Framework-45-ASPNET, Web-Asp-Net45; ` Remove-Website -Name 'Default Web Site' COPY ProductLaunchWeb /product-launch-webRUN New-Website -Name 'product-launch' ` -PhysicalPath 'C:\product-launch-web' -Port 80

EXPOSE 80

COPY bootstrap.ps1 /ENTRYPOINT ./bootstrap.ps1

> docker push

hub.docker.com

> docker run

Docker on Windows demo

Current Limitations• Overlay networking

– Swarm mode

• RAM disk

– Secrets

• Mounts

– Volumes & pipes

sixeyed/docker-windows-kb

Differences• Base images

– Monthly release

• Isolation mode

– Hyper-V containers

• Licensing & support

– Docker & Microsoft

Windows Apps in Docker Compose demo

GET

GET

Hybrid swarm demo

Manager + UCP Worker + DTR Worker Worker

THANK YOU