Docker, OSS and Azure

Preview:

Citation preview

Docker, OSS and AzureA Short Introduction

Elton Stoneman@EltonStoneman | elton@docker.com

• Why Docker containers?

• Docker and OSS

• Docker on Azure HOLs

Why Docker Containers?

Density. 5-10X over VMs

4

8 VMs

40 containers

Portability. Consistent deployment

5

Build Test Prod

6

Security. Provenance & trust

Security ScanningContent Trust

Docker and OSS

buildshiprun

Open JDK

Tomcat

Web App

Ubuntu

Apache

> docker build

FROM tomcat:7-jre8

COPY app.war /usr/local/tomcat/webapps/

EXPOSE 8080

ENTRYPOINT catalina.sh run

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

RUN Remove-Website -Name 'Default Web Site'; ` New-Item –Type Directory –Path C:\app; ` New-Website -Name 'product-launch' ` -PhysicalPath 'C:\app' -Port 80

COPY ProductLaunchWeb /app

Docker Image

• Single (logical) binary• Complete application stack• Packaged & configured

> docker push

hub.docker.com

Image Registry

• Shared image store• Free, commercial & EE products• Open source package

> docker run

Docker Container

• Logical process boundary• Namespaces & cgroups• Open implementation

Docker on Azure HOLs

Web

API

20

Docker Compose• Distributed solutions

– Multiple containers

• Organization

– Single deployment doc

• Running

– Start, stop and scale

version: '3'

services:

elasticsearch: image: sixeyed/elasticsearch:nanoserver message-queue: image: nats:nanoserver

index-prospect-handler: image: sixeyed/product-launch-index-handler:v4 depends_on: - elasticsearch - message-queue

Docker Compose Fundamentals• Organizing distributed solutions

– Single definition | Multiple environments

• Managing multi-container solutions

– Start, stop, scale | Update

• Client-side tool

– Local YAML file | Remote Docker engine

23

Docker Swarm

Manager Worker WorkerWorker

Docker Swarm Fundamentals• Native Docker clustering

– OS | Docker

• Manager-worker architecture

– High-availability | Scale out

• Zero-downtime updates

– Application updates | Node patching

THANK YOU

Recommended