SlideShare a Scribd company logo
Docker Oxford
Welcome!
#DockerOxford
Introduction to Docker
2015-09-10
Jonatan Bjork
DevOps Engineer
@jonatanblue
Thanks John!
(and your company, Reqiva)
What is Docker?
An open-source project that
automates the deployment
of applications inside
software containers
Sounds a lot like VM to me…
VM hypervisors (such as Hyper-V, KVM, and Xen)
are all based on emulating hardware. That makes
them fat in terms of system requirements.
Containers use shared operating systems. Instead
of virtualising hardware, containers rest on top of a
single Linux instance.
Why do we like that?
When using containers you can leave behind the
useless 99.9% VM junk, leaving you with a small,
neat capsule containing your application.
I don’t need Docker
I can do all that stuff with LXC tools, rsync + some
scripts!
true on all accounts
but it's also true for apt, dpkg, rpm, yum, …
the whole point is to commoditise
to make it ridiculously easy to use
What is Doxford?
Docker Oxford is a place to learn about Docker
and containers.
We are developers, sysadmins and ops and
software engineers, working with containers to
build and deliver better software.
I’m ready to try it!
docker.com/toolbox
on Linux…
docs.docker.com/linux/started/
# curl do_you_trust_me.sh | bash
# apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys
58118E89F3A912897C070ADBF76221572C52609D

# echo “deb https://apt.dockerproject.org/repo ubuntu-trusty main” > /etc/
apt/sources.list.d/docker.list

# apt-get update

# apt-get purge lxc-docker*

# apt-get install docker-engine
or
or
github.com/docker-oxford/docker-systems
Docker on your machine
• Docker client - CLI you issue commands to
• Docker daemon - Service running in the
background, responsible for pulling images,
running containers and streaming input/output from/
to the client
Images & Containers
• Image

An ordered collection of root filesystem changes -
typically a union of layered filesystems stacked on
top of each other. Images are read only.
• Container

A container is a runtime instance of a docker
image. Consists of:

- A Docker image

- Execution environment

- A standard set of instructions
Building an image
• Dockerfile - a text document that contains all the
commands you would normally execute manually in
order to build a Docker image
Building an image
Committing an image
If you make
changes to a
container, you
can commit those
changes by
creating a new
image from that
state!
Shipping an image
• Locally - you can build the image on the same
machine as you run it on. That way the image is
instantly accessible after it’s been built.
• Registry - the more scalable way to ship images is
to use a registry - it’s basically a third machine that
acts as an image store. You build the image on one
machine, push it to the registry, and pull it down to
all other machines that want to run containers from
that image.



The most famous registry is hub.docker.com
Shipping an image: locally
Shipping an image: tar
Shipping an image: registry
Live recorded demo.
Docker Hack Day
• Anything Docker-related
• Submit idea + find a team (we can help you do
that)
• Join us at the Hatch on Saturday 19th September
for a day of coding
• Details on the Meetup page
Requests
• Docker cases in production
• Drone for continuous integration
• Anyone using Registry? Nope.
• Can you use AutoScaling with Docker?
Ack.
- James Bottomley explains the difference between containers
vs. VMs really well.
- Docker glossary explains everything: http://docs.docker.com/
reference/glossary/
- Matt Jaynes (@nanobeep on Twitter) provides excellent
guidance in combating complexity
Q&A
• What’s the benefit of using -v over committing everything to the image? —> -v
allows you to from the host share SSL certs, passwords, things you (may) want
to change independently of your container — anything you need to get out to
make the container stateless.
• You can use —format when doing docker inspect
• Production use case 1: On AWS with RDS (postgres), ElasticSearch, Nginx
using Docker Compose (a YAML file that describes links between containers)
• Production use case 2: RESTful API spawning containers for processing videos
• Can you link multiple containers? —> Yes, with Compose
• RancherOS — dockerised version of Linux
• Dokku - Heroku in a box
• Openshift - Runs SELinux
• Mesos — post article with diff Kubernetes
• If you have to log in to a container and change stuff you’re probably doing it
wrong…
• Docker newsletter is useful
Ideas for future talks.
• Using Docker as a provider for Vagrant
• Docker Compose, Swarm and Machine
• Docker good ideas and misconceptions
• Docker security (sharing machines, verifying images,
patching)
• Logging and monitoring
• Docker platform as a service
Please contact us if you want to give a talk on any of these
topics!
meetup.com/docker-oxford

More Related Content

What's hot

Intro to Docker - London meetup oct. 2013
Intro to Docker - London meetup oct. 2013Intro to Docker - London meetup oct. 2013
Intro to Docker - London meetup oct. 2013stevedomin
 
Herding your cattle from dev to ops
Herding your cattle from dev to opsHerding your cattle from dev to ops
Herding your cattle from dev to ops
Bastiaan Schaap
 
Easy Docker on Microsoft Azure
Easy Docker on Microsoft AzureEasy Docker on Microsoft Azure
Easy Docker on Microsoft AzureDocker, Inc.
 
Dockerizing your applications - Docker workshop @Twitter
Dockerizing your applications - Docker workshop @TwitterDockerizing your applications - Docker workshop @Twitter
Dockerizing your applications - Docker workshop @Twitter
dotCloud
 
Docker Fundamentals
Docker FundamentalsDocker Fundamentals
Docker Fundamentals
Mien Dinh
 
Docker Introduction
Docker IntroductionDocker Introduction
Docker Introduction
MANAOUIL Karim
 
Adventures in docker compose
Adventures in docker composeAdventures in docker compose
Adventures in docker compose
LinkMe Srl
 
Introduction to Docker Compose | Docker Intermediate Workshop
Introduction to Docker Compose | Docker Intermediate WorkshopIntroduction to Docker Compose | Docker Intermediate Workshop
Introduction to Docker Compose | Docker Intermediate Workshop
Ajeet Singh Raina
 
Docker architecture-04-1
Docker architecture-04-1Docker architecture-04-1
Docker architecture-04-1
Mohammadreza Amini
 
Docker: From Zero to Hero
Docker: From Zero to HeroDocker: From Zero to Hero
Docker: From Zero to Hero
fazalraja
 
Docker Basics
Docker BasicsDocker Basics
Docker Basics
DuckDuckGo
 
Getting started with Docker
Getting started with DockerGetting started with Docker
Getting started with Docker
Ravindu Fernando
 
Docker and the Linux Kernel
Docker and the Linux KernelDocker and the Linux Kernel
Docker and the Linux Kernel
Docker, Inc.
 
Intro to Docker
Intro to DockerIntro to Docker
Intro to Docker
Tim Haak
 
Docker Basic Presentation
Docker Basic PresentationDocker Basic Presentation
Docker Basic Presentation
Aman Chhabra
 
Docker 101 - Getting started
Docker 101 - Getting startedDocker 101 - Getting started
Docker 101 - Getting started
Matheus Marabesi
 
Docker 101 Workshop slides (JavaOne 2017)
Docker 101 Workshop slides (JavaOne 2017)Docker 101 Workshop slides (JavaOne 2017)
Docker 101 Workshop slides (JavaOne 2017)
Eric Smalling
 
Docker
DockerDocker
Introduction to docker
Introduction to dockerIntroduction to docker
Introduction to docker
Wei-Ting Kuo
 
Docker introduction
Docker introductionDocker introduction
Docker introduction
Phuc Nguyen
 

What's hot (20)

Intro to Docker - London meetup oct. 2013
Intro to Docker - London meetup oct. 2013Intro to Docker - London meetup oct. 2013
Intro to Docker - London meetup oct. 2013
 
Herding your cattle from dev to ops
Herding your cattle from dev to opsHerding your cattle from dev to ops
Herding your cattle from dev to ops
 
Easy Docker on Microsoft Azure
Easy Docker on Microsoft AzureEasy Docker on Microsoft Azure
Easy Docker on Microsoft Azure
 
Dockerizing your applications - Docker workshop @Twitter
Dockerizing your applications - Docker workshop @TwitterDockerizing your applications - Docker workshop @Twitter
Dockerizing your applications - Docker workshop @Twitter
 
Docker Fundamentals
Docker FundamentalsDocker Fundamentals
Docker Fundamentals
 
Docker Introduction
Docker IntroductionDocker Introduction
Docker Introduction
 
Adventures in docker compose
Adventures in docker composeAdventures in docker compose
Adventures in docker compose
 
Introduction to Docker Compose | Docker Intermediate Workshop
Introduction to Docker Compose | Docker Intermediate WorkshopIntroduction to Docker Compose | Docker Intermediate Workshop
Introduction to Docker Compose | Docker Intermediate Workshop
 
Docker architecture-04-1
Docker architecture-04-1Docker architecture-04-1
Docker architecture-04-1
 
Docker: From Zero to Hero
Docker: From Zero to HeroDocker: From Zero to Hero
Docker: From Zero to Hero
 
Docker Basics
Docker BasicsDocker Basics
Docker Basics
 
Getting started with Docker
Getting started with DockerGetting started with Docker
Getting started with Docker
 
Docker and the Linux Kernel
Docker and the Linux KernelDocker and the Linux Kernel
Docker and the Linux Kernel
 
Intro to Docker
Intro to DockerIntro to Docker
Intro to Docker
 
Docker Basic Presentation
Docker Basic PresentationDocker Basic Presentation
Docker Basic Presentation
 
Docker 101 - Getting started
Docker 101 - Getting startedDocker 101 - Getting started
Docker 101 - Getting started
 
Docker 101 Workshop slides (JavaOne 2017)
Docker 101 Workshop slides (JavaOne 2017)Docker 101 Workshop slides (JavaOne 2017)
Docker 101 Workshop slides (JavaOne 2017)
 
Docker
DockerDocker
Docker
 
Introduction to docker
Introduction to dockerIntroduction to docker
Introduction to docker
 
Docker introduction
Docker introductionDocker introduction
Docker introduction
 

Similar to Docker Oxford launch - Introduction to Docker

Docker - Portable Deployment
Docker - Portable DeploymentDocker - Portable Deployment
Docker - Portable Deploymentjavaonfly
 
Docker slides
Docker slidesDocker slides
Docker slides
Jyotsna Raghuraman
 
Docker.pptx
Docker.pptxDocker.pptx
Docker.pptx
balaji257
 
Containerization using docker and its applications
Containerization using docker and its applicationsContainerization using docker and its applications
Containerization using docker and its applications
Puneet Kumar Bhatia (MBA, ITIL V3 Certified)
 
Let's dockerize
Let's dockerizeLet's dockerize
Let's dockerize
Ahmed Sorour
 
Michigan IT Symposium 2017 - Container BOF
Michigan IT Symposium 2017 - Container BOFMichigan IT Symposium 2017 - Container BOF
Michigan IT Symposium 2017 - Container BOF
Jeffrey Sica
 
Developer workflow with docker
Developer workflow with dockerDeveloper workflow with docker
Developer workflow with docker
Wyn B. Van Devanter
 
What is Docker?
What is Docker?What is Docker?
What is Docker?
Shubhrank Rastogi
 
Docker interview Questions-1.pdf
Docker interview Questions-1.pdfDocker interview Questions-1.pdf
Docker interview Questions-1.pdf
Yogeshwaran R
 
Containerize! Between Docker and Jube.
Containerize! Between Docker and Jube.Containerize! Between Docker and Jube.
Containerize! Between Docker and Jube.
Henryk Konsek
 
Introduction to Docker Containers - Docker Captain
Introduction to Docker Containers - Docker CaptainIntroduction to Docker Containers - Docker Captain
Introduction to Docker Containers - Docker Captain
Ajeet Singh Raina
 
Docker 1.9 Workshop
Docker 1.9 WorkshopDocker 1.9 Workshop
Docker 1.9 Workshop
{code}
 
containers and virtualization tools ( Docker )
containers and virtualization tools ( Docker )containers and virtualization tools ( Docker )
containers and virtualization tools ( Docker )
Imo Inyang
 
Introduction to Docker - IndiaOpsUG
Introduction to Docker - IndiaOpsUGIntroduction to Docker - IndiaOpsUG
Introduction to Docker - IndiaOpsUG
Ajeet Singh Raina
 
Docker Ecosystem on Azure
Docker Ecosystem on AzureDocker Ecosystem on Azure
Docker Ecosystem on Azure
Patrick Chanezon
 
Dockerize the World
Dockerize the WorldDockerize the World
Dockerize the World
damovsky
 
Docker
DockerDocker
Hack the whale
Hack the whaleHack the whale
Hack the whale
Marco Ferrigno
 
Introduction to Docker
Introduction to DockerIntroduction to Docker
Introduction to Docker
Alan Forbes
 

Similar to Docker Oxford launch - Introduction to Docker (20)

Docker - Portable Deployment
Docker - Portable DeploymentDocker - Portable Deployment
Docker - Portable Deployment
 
Docker slides
Docker slidesDocker slides
Docker slides
 
Docker.pptx
Docker.pptxDocker.pptx
Docker.pptx
 
Containerization using docker and its applications
Containerization using docker and its applicationsContainerization using docker and its applications
Containerization using docker and its applications
 
Containerization using docker and its applications
Containerization using docker and its applicationsContainerization using docker and its applications
Containerization using docker and its applications
 
Let's dockerize
Let's dockerizeLet's dockerize
Let's dockerize
 
Michigan IT Symposium 2017 - Container BOF
Michigan IT Symposium 2017 - Container BOFMichigan IT Symposium 2017 - Container BOF
Michigan IT Symposium 2017 - Container BOF
 
Developer workflow with docker
Developer workflow with dockerDeveloper workflow with docker
Developer workflow with docker
 
What is Docker?
What is Docker?What is Docker?
What is Docker?
 
Docker interview Questions-1.pdf
Docker interview Questions-1.pdfDocker interview Questions-1.pdf
Docker interview Questions-1.pdf
 
Containerize! Between Docker and Jube.
Containerize! Between Docker and Jube.Containerize! Between Docker and Jube.
Containerize! Between Docker and Jube.
 
Introduction to Docker Containers - Docker Captain
Introduction to Docker Containers - Docker CaptainIntroduction to Docker Containers - Docker Captain
Introduction to Docker Containers - Docker Captain
 
Docker 1.9 Workshop
Docker 1.9 WorkshopDocker 1.9 Workshop
Docker 1.9 Workshop
 
containers and virtualization tools ( Docker )
containers and virtualization tools ( Docker )containers and virtualization tools ( Docker )
containers and virtualization tools ( Docker )
 
Introduction to Docker - IndiaOpsUG
Introduction to Docker - IndiaOpsUGIntroduction to Docker - IndiaOpsUG
Introduction to Docker - IndiaOpsUG
 
Docker Ecosystem on Azure
Docker Ecosystem on AzureDocker Ecosystem on Azure
Docker Ecosystem on Azure
 
Dockerize the World
Dockerize the WorldDockerize the World
Dockerize the World
 
Docker
DockerDocker
Docker
 
Hack the whale
Hack the whaleHack the whale
Hack the whale
 
Introduction to Docker
Introduction to DockerIntroduction to Docker
Introduction to Docker
 

Recently uploaded

Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Ramesh Iyer
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
Alison B. Lowndes
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
Kari Kakkonen
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
RTTS
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
Sri Ambati
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
Product School
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
Safe Software
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
DianaGray10
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
91mobiles
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
Product School
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
Jemma Hussein Allen
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
Product School
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
Elena Simperl
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Product School
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
James Anderson
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
Dorra BARTAGUIZ
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
KatiaHIMEUR1
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
Guy Korland
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
UiPathCommunity
 

Recently uploaded (20)

Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
 

Docker Oxford launch - Introduction to Docker

  • 2. Introduction to Docker 2015-09-10 Jonatan Bjork DevOps Engineer @jonatanblue
  • 3. Thanks John! (and your company, Reqiva)
  • 4. What is Docker? An open-source project that automates the deployment of applications inside software containers
  • 5. Sounds a lot like VM to me… VM hypervisors (such as Hyper-V, KVM, and Xen) are all based on emulating hardware. That makes them fat in terms of system requirements. Containers use shared operating systems. Instead of virtualising hardware, containers rest on top of a single Linux instance.
  • 6. Why do we like that? When using containers you can leave behind the useless 99.9% VM junk, leaving you with a small, neat capsule containing your application.
  • 7. I don’t need Docker I can do all that stuff with LXC tools, rsync + some scripts! true on all accounts but it's also true for apt, dpkg, rpm, yum, … the whole point is to commoditise to make it ridiculously easy to use
  • 8. What is Doxford? Docker Oxford is a place to learn about Docker and containers. We are developers, sysadmins and ops and software engineers, working with containers to build and deliver better software.
  • 9. I’m ready to try it! docker.com/toolbox
  • 10. on Linux… docs.docker.com/linux/started/ # curl do_you_trust_me.sh | bash # apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
 # echo “deb https://apt.dockerproject.org/repo ubuntu-trusty main” > /etc/ apt/sources.list.d/docker.list
 # apt-get update
 # apt-get purge lxc-docker*
 # apt-get install docker-engine or or github.com/docker-oxford/docker-systems
  • 11. Docker on your machine • Docker client - CLI you issue commands to • Docker daemon - Service running in the background, responsible for pulling images, running containers and streaming input/output from/ to the client
  • 12.
  • 13. Images & Containers • Image
 An ordered collection of root filesystem changes - typically a union of layered filesystems stacked on top of each other. Images are read only. • Container
 A container is a runtime instance of a docker image. Consists of:
 - A Docker image
 - Execution environment
 - A standard set of instructions
  • 14.
  • 15. Building an image • Dockerfile - a text document that contains all the commands you would normally execute manually in order to build a Docker image
  • 17. Committing an image If you make changes to a container, you can commit those changes by creating a new image from that state!
  • 18. Shipping an image • Locally - you can build the image on the same machine as you run it on. That way the image is instantly accessible after it’s been built. • Registry - the more scalable way to ship images is to use a registry - it’s basically a third machine that acts as an image store. You build the image on one machine, push it to the registry, and pull it down to all other machines that want to run containers from that image.
 
 The most famous registry is hub.docker.com
  • 21. Shipping an image: registry
  • 23. Docker Hack Day • Anything Docker-related • Submit idea + find a team (we can help you do that) • Join us at the Hatch on Saturday 19th September for a day of coding • Details on the Meetup page
  • 24. Requests • Docker cases in production • Drone for continuous integration • Anyone using Registry? Nope. • Can you use AutoScaling with Docker?
  • 25. Ack. - James Bottomley explains the difference between containers vs. VMs really well. - Docker glossary explains everything: http://docs.docker.com/ reference/glossary/ - Matt Jaynes (@nanobeep on Twitter) provides excellent guidance in combating complexity
  • 26. Q&A • What’s the benefit of using -v over committing everything to the image? —> -v allows you to from the host share SSL certs, passwords, things you (may) want to change independently of your container — anything you need to get out to make the container stateless. • You can use —format when doing docker inspect • Production use case 1: On AWS with RDS (postgres), ElasticSearch, Nginx using Docker Compose (a YAML file that describes links between containers) • Production use case 2: RESTful API spawning containers for processing videos • Can you link multiple containers? —> Yes, with Compose • RancherOS — dockerised version of Linux • Dokku - Heroku in a box • Openshift - Runs SELinux • Mesos — post article with diff Kubernetes • If you have to log in to a container and change stuff you’re probably doing it wrong… • Docker newsletter is useful
  • 27. Ideas for future talks. • Using Docker as a provider for Vagrant • Docker Compose, Swarm and Machine • Docker good ideas and misconceptions • Docker security (sharing machines, verifying images, patching) • Logging and monitoring • Docker platform as a service Please contact us if you want to give a talk on any of these topics! meetup.com/docker-oxford