from zero to hero with docker

Click here to load reader

Download From zero to hero with docker

Post on 16-Apr-2017

290 views

Category:

Technology

0 download

Embed Size (px)

TRANSCRIPT

From zero to hero with DockerMaurice de Beijer @mauricedbRunning your ASP.NET Core 1 application in a Docker container

1

Who am I?Maurice de BeijerThe Problem SolverMicrosoft Azure MVPFreelance developer/instructorTwitter:@mauricedb and @React_TutorialWeb:http://www.TheProblemSolver.nlE-mail:[email protected]

2

2

3

https://www.flickr.com/photos/[email protected]/3468038614/

4

https://www.flickr.com/photos/faceme/7466333558/

OverviewWhat are containersWhat is DockerCreating and running Docker imagesRunning an ASP.NET Core 1.0 App in a Docker containerBut we need more5

https://www.flickr.com/photos/quinnanya/5046072204/5

What is a container?6

A single lift takes 40 tons of cargo

https://www.flickr.com/photos/glynlowe/143696638776

Once upon a ship7

Ships where not very efficient when loading/unloading7

Loading cargo the old way8

A lot of people where needed to move cargo in small units

8

A container ship these days9

Large container ships move unknown cargo very efficiently

https://www.flickr.com/photos/rhemkes/153986530929

Loading is a bit faster10

Loading is much more efficient because of standard container sizes

https://www.flickr.com/photos/anaulin/104767382010

Running virtual machines11

https://www.flickr.com/photos/prayitnophotography/465558535611

Virtual Machines vs Containers

12

Initial release13March201312

NamespacesCgroupsUnion file system13

Containers are based on Linux namespaces and cgroupsNamespaces create separation The root can see everythingContainers can only see things in their own namespaceExisted before Docker Docker just makes things easier

https://www.flickr.com/photos/prettybipolar/6938332165/13

What is Docker?

14

Docker Hub

15

Contains many ready to use images Upload your own15

Building containers16

A Docker file to create an image with NodeJS

https://www.flickr.com/photos/nyuhuhuu/4443886636/16

Orchestration17

https://www.flickr.com/photos/frederikmagle/702676968717

Docker Compose

18

Creating a Docker container with a CoreCLR application18

19

20

The minimal Dockerfile

21

Creating a Docker container with a CoreCLR application21

ASP.NET Core 1.0 Appon Linux

22

Creating a Docker container with a CoreCLR application22

Docker Tools forVisual Studio 2015

23

Creating a Docker container with a CoreCLR application23

Docker Tools forVisual Studio 2015

24

Creating a Docker container with a CoreCLR application24

Docker on Windows25

Windows Server ContainersVery much like the Linux Docker containersAvailable on site or in AzureHyper-V ContainerMore like a virtual machine then a traditional containerOnly available on site

https://www.flickr.com/photos/schmollmolch/9816042533/25

26

Creating Docker imagesUsing Docker commandsUsing PowerShell

https://www.flickr.com/photos/jemimus/704888707126

Maurice de Beijer - @mauricedb27

https://www.flickr.com/photos/ell-r-brown/7160371456

27