is docker scalable? 5 big docker myths explodeded

49
sendachi.com Docker: 5 Big Myths Exploded Matt Saunders Principal Consultant Sendachi

Upload: sendachi

Post on 14-Jan-2017

153 views

Category:

Data & Analytics


2 download

TRANSCRIPT

Page 1: Is Docker Scalable?  5 Big Docker Myths Explodeded

sendachi.com

Docker:5 Big Myths Exploded

Matt SaundersPrincipal ConsultantSendachi

Page 2: Is Docker Scalable?  5 Big Docker Myths Explodeded

sendachi.com

Sendachi

• Formed in 2016

• Merging Clutch (US) and Contino (UK)

• VC Funded Services Company

• Docker Premier Partner

Page 3: Is Docker Scalable?  5 Big Docker Myths Explodeded

sendachi.com

Sendachi

• Enterprise Focus

• DevOps & Continuous Delivery

• Containerisation & Virtualisation

• Microservices

• Security, Reliability & Resilience

• Cloud Architecture

Page 4: Is Docker Scalable?  5 Big Docker Myths Explodeded

sendachi.com

The Case for Docker

Page 5: Is Docker Scalable?  5 Big Docker Myths Explodeded

sendachi.com

Docker Adoption

5.6 million pulls/day$1 billion valuation

2 billion + pulls to date

Page 6: Is Docker Scalable?  5 Big Docker Myths Explodeded

sendachi.com

Docker Adoption

Page 7: Is Docker Scalable?  5 Big Docker Myths Explodeded

sendachi.com

Docker Adoption

Page 8: Is Docker Scalable?  5 Big Docker Myths Explodeded

sendachi.com

Containerisation Benefits (1/2)

• Container abstraction layer

• Platform Portability

• Resilience with Clustering

• Provenance and Traceability

Page 9: Is Docker Scalable?  5 Big Docker Myths Explodeded

sendachi.com

Containerisation Benefits (2/2)

• Environment Consistency

• Improved Compute Density

• Multi-Tenancy

• Remove the Virtualisation Tax

Page 10: Is Docker Scalable?  5 Big Docker Myths Explodeded

sendachi.com

Container Abstraction Layer

• Common point of entry for containers

• Run diverse technology stacks

• HTTP with RESTful Interfaces work well

• Microservices

• 12 Factor Applications

Page 11: Is Docker Scalable?  5 Big Docker Myths Explodeded

sendachi.com

Platform Portability

• Move applications easily between servers

• Private and public cloud

• Everything is contained

Page 12: Is Docker Scalable?  5 Big Docker Myths Explodeded

sendachi.com

Resilience with Clustering

• Higher-order clustering options

• Built specifically for Docker

• Docker Swarm itself is a containerised application

Page 13: Is Docker Scalable?  5 Big Docker Myths Explodeded

sendachi.com

Provenance and Traceability

• Container builds can be automated

• Cryptographic signing available

• Docker registry comms are encrypted

• Proof that the image is as-built

Page 14: Is Docker Scalable?  5 Big Docker Myths Explodeded

sendachi.com

Environment Consistency

• Applications run purely inside containers

• Environment information stored outside containers

• The same unaltered container runs in all environments

• Environmental drift is minimised

Page 15: Is Docker Scalable?  5 Big Docker Myths Explodeded

sendachi.com

Improved Compute Density

• Applications can be limited by memory and CPU

• Pre-allocation of resources isn’t necessary

• Intelligent scheduling of workloads with Swarm

• Run larger Docker host servers without virtualisation

Page 16: Is Docker Scalable?  5 Big Docker Myths Explodeded

sendachi.com

Multi-Tenancy

• Docker containers are insulated from each other

• Containers can’t interfere or interact with each other

• Enables greater density

Page 17: Is Docker Scalable?  5 Big Docker Myths Explodeded

sendachi.com

Remove the Virtualisation Tax

• Docker machine can run on bare metal

• Swarm orchestration optimally places containers

• Swarm will replace containers on failed nodes

• Any need for virtualisation?

Page 18: Is Docker Scalable?  5 Big Docker Myths Explodeded

sendachi.com

Docker is Insecure

Myth 1

Page 19: Is Docker Scalable?  5 Big Docker Myths Explodeded

sendachi.com

Docker is Insecure

• Don’t run as root

• User namespaces

• Capabilities

• Use AppArmor, SELinux and friends

Page 20: Is Docker Scalable?  5 Big Docker Myths Explodeded

sendachi.com

Docker is Insecure

Page 21: Is Docker Scalable?  5 Big Docker Myths Explodeded

sendachi.com

Docker is Insecure

Page 22: Is Docker Scalable?  5 Big Docker Myths Explodeded

sendachi.com

Docker is Inappropriate for

Enterprises

Myth 2

Page 23: Is Docker Scalable?  5 Big Docker Myths Explodeded

sendachi.com

Docker in the Enterprise

• Docker will lose your data

Page 24: Is Docker Scalable?  5 Big Docker Myths Explodeded

sendachi.com

Docker in the Enterprise

• Use volume mounts

• Store data on your resilient storage

Page 25: Is Docker Scalable?  5 Big Docker Myths Explodeded

sendachi.com

Docker in the Enterprise

• No-one knows what’s in your containers

Page 26: Is Docker Scalable?  5 Big Docker Myths Explodeded

sendachi.com

Docker in the Enterprise

• Use version control and CI

• Use Docker Notary

• Sign your images

• Scan containers at build-time

Page 27: Is Docker Scalable?  5 Big Docker Myths Explodeded

sendachi.com

Docker in the Enterprise

Page 28: Is Docker Scalable?  5 Big Docker Myths Explodeded

sendachi.com

Docker in the Enterprise

• Goldman Sachs

• Swisscom

• New York Times

• ING

• BBC

Page 29: Is Docker Scalable?  5 Big Docker Myths Explodeded

sendachi.com

Docker Containers are unusably large

Myth 3

Page 30: Is Docker Scalable?  5 Big Docker Myths Explodeded

sendachi.com

Containers are too big

• Full OS images can be > 1 Gb

• Laden container with app > 2 Gb

Page 31: Is Docker Scalable?  5 Big Docker Myths Explodeded

sendachi.com

Containers are too big

Page 32: Is Docker Scalable?  5 Big Docker Myths Explodeded

sendachi.com

Containers are too big

• Don’t embed large OSes in containers

• Not gonna need it

• Work with Security people

Page 33: Is Docker Scalable?  5 Big Docker Myths Explodeded

sendachi.com

Containers are too big

• Host locally

• Docker Trusted Registry

• Hosts your images

• Fine-grained RBAC

• Cryptographic signing

Page 34: Is Docker Scalable?  5 Big Docker Myths Explodeded

sendachi.com

Docker Needs Microservices

Myth 4

Page 35: Is Docker Scalable?  5 Big Docker Myths Explodeded

sendachi.com

Docker and Microservices

• Run a staged move to Docker

• Run your monolith in a container

Page 36: Is Docker Scalable?  5 Big Docker Myths Explodeded

sendachi.com

Docker and Microservices

• Run a staged move to Docker

• Run your monolith in a container

Page 37: Is Docker Scalable?  5 Big Docker Myths Explodeded

sendachi.com

Docker and Microservices

• Get some benefits

• Faster startup times

• Move app between environments

Page 38: Is Docker Scalable?  5 Big Docker Myths Explodeded

sendachi.com

Docker and Microservices

• Start breaking up the monolith

• Slice bits of the edges

• Make microservices

Page 39: Is Docker Scalable?  5 Big Docker Myths Explodeded

sendachi.com

Docker and Microservices

Page 40: Is Docker Scalable?  5 Big Docker Myths Explodeded

sendachi.com

Docker and Microservices

• Manage Microservice-based architectures

• Gradual transformation

Page 41: Is Docker Scalable?  5 Big Docker Myths Explodeded

sendachi.com

Docker only works in the Cloud

Myth 5

Page 42: Is Docker Scalable?  5 Big Docker Myths Explodeded

sendachi.com

Docker in the Cloud

• Run Docker Engine on your own hosts

• Reduce the VM tax with larger instances

• Leverage existing hardware investment

• Use existing firewalls and loadbalancers

Page 43: Is Docker Scalable?  5 Big Docker Myths Explodeded

sendachi.com

Docker doesn’t work on Windows

Myth 6

Page 44: Is Docker Scalable?  5 Big Docker Myths Explodeded

sendachi.com

Docker on Windows

• Docker Toolbox now runs natively

• Docker Engine runs on Server 2016 TP5

• Run Windows Docker containers

• Still early days

Page 45: Is Docker Scalable?  5 Big Docker Myths Explodeded

sendachi.com

Docker on Windows

• Docker Toolbox now runs natively

• Docker Engine runs on Windows

Server 2016 TP5

Page 46: Is Docker Scalable?  5 Big Docker Myths Explodeded

sendachi.com

Docker on Windows

• Windows Nano Server

Page 47: Is Docker Scalable?  5 Big Docker Myths Explodeded

sendachi.com

That’s all the myths

Myth 7

Page 48: Is Docker Scalable?  5 Big Docker Myths Explodeded

sendachi.com

More Myths

• Containers can’t be orchestrated at scale

• Containers are just small VMs

• Enterprise IT and containers are incompatible

• Docker isn’t being used in production

Page 49: Is Docker Scalable?  5 Big Docker Myths Explodeded

sendachi.com

Thanks!

Matt SaundersPrincipal [email protected]@sendachi.com

[email protected]