SlideShare a Scribd company logo
Docker
Rex Docker Con 2017
Guillaume Bizet
Solution Architect @ Finaxys
gbizet@finaxys.com
Keynote
“Multi-stage builds” :With multi-stage builds you can now easily separate your build-time and runtime container images,
allowing development teams to ship minimal and efficient images.
LinuxKit :LinuxKit includes the tooling to allow building custom Linux subsystems that only include exactly the
components the runtime platform requires. All system services are containers that can be replaced, and everything that is
not required can be removed. All components can be substituted with ones that match specific needs. It is a kit, very
much in the Docker philosophy of batteries included but swappable
Hyper-V pour linux : Microsoft HyperV now support isolation for Linux Containers !
Oracle is now on Docker store ! Certified and free for dev versions !
Modernize Traditional Applications (MTA) Program
Image2docker
Keynote … Huge !
•At the core of Moby is a framework to assemble specialized container systems. It
provides:
•A library of containerized components for all vital aspects of a container system: OS,
container runtime, orchestration, infrastructure management, networking, storage,
security, build, image distribution, etc.
•Tools to assemble the components into runnable artifacts for a variety of platforms and
architectures: bare metal (both x86 and Arm); executables for Linux, Mac and Windows;
VM images for popular cloud and virtualization providers.
•A set of reference assemblies which can be used as-is, modified, or used as inspiration to
create your own.
•All Moby components are containers, so creating new components is as easy as building
a new OCI-compatible container.
https://github.com/moby/moby
Solomon explains with 2 pics
See also : https://blog.docker.com/2017/04/introducing-the-moby-project/
How to rebuild docker (windows)?
•https://github.com/moby/moby/blob/master/Dockerfile.windows
• Build the docker executable binaries by running one of the following:
•# >> $DOCKER_GITCOMMIT=(git rev-parse --short HEAD)
•# >> docker run --name binaries -e DOCKER_GITCOMMIT=$DOCKER_GITCOMMIT
nativebuildimage hackmake.ps1 -Binary
•# >> docker run --name binaries -e DOCKER_GITCOMMIT=$DOCKER_GITCOMMIT
-m 2GB nativebuildimage hackmake.ps1 -Binary (if using Hyper-V containers)
•And Voila !
Or linux !
•https://github.com/moby/moby/blob/master/Dockerfile
•Docker build –t mydocker . : easy as it :D
A quick hands-on with and
•git clone https://github.com/linuxkit/linuxkit.git
•docker run --rm -v D:SRClinuxkit:/app -v
"/var/run/docker.sock:/var/run/docker.sock" pottava/moby build
linuxkit.yml
A quick hands-on with and
•docker run --rm -v D:SRClinuxkit:/app -it pottava/moby run linuxkit
The yml behind !
•https://raw.githubusercontent.com/linuxkit/linuxkit/master/linuxkit.yml
•What if you want change the output ?
•Inital yml have and the build make this
•outputs:
• - format: kernel+initrd
• - format: iso-bios
• - format: iso-efi
Change the output ? 
•Edit the yml and change output :
•To
Image2docker ?
•Image2Docker is a Powershell module that you can point at a virtual hard disk image,
scan for common Windows components and suggest a Dockerfile.
•Supported Artifacts
•This project currently supports discovery of the following artifacts:
•Microsoft Windows Server Roles and Features
•Microsoft Windows Add/Remove Programs (ARP)
•Microsoft Windows Server Domain Name Server (DNS)
•Microsoft Windows Internet Information Services (IIS)
–HTTP Handlers in IIS configuration
–IIS Websites and filesystem paths
–ASP.NET web applications
•Microsoft SQL Server instances
•Apache Web Server
Image2docker ? Get Started
•https://github.com/docker/communitytools-image2docker-win
•Install-Module Image2Docker
•Import-Module Image2Docker
•Then
• ConvertTo-Dockerfile -ImagePath c:dockermyimage.wim
•Exemple :
• ConvertTo-Dockerfile -ImagePath c:vmsiis.vhd -Artifact IIS -ArtifactParam aspnet-
webapi -OutputPath c:i2d2
• cd c:i2d2
• docker build -t aspnet-webapi .
• docker run -d -p 80:80 aspnet-webapi
Usefull links
•Blog :http://2017.dockercon.com/blog/
•Awesome talk of Diogo Monica and Riyaz Faizullabhoy
•https://www.slideshare.net/Docker/secure-substrate-least-privilege-
container-deployment?ref=https://blog.docker.com/2017/04/dockercon-
2017-top-rated-sessions/
•Moby repo : https://github.com/moby/moby.git
•LinuxKit repo : https://github.com/linuxkit/linuxkit
•InfraKit repo : https://github.com/docker/infrakit.git
•Image2docker repo : https://github.com/docker/communitytools-
image2docker-win

More Related Content

PDF
LinuxKit and Moby, news from DockerCon 2017 - Austin,TX
PDF
Running Docker on ARM
PDF
Developer workflow with docker
PDF
PDF
Wordcamp Bratislava 2017 - Docker! Why?
PPTX
LinuxKit: the first five months by Justin Cormack & Riyaz Faizullabhoy (Docker)
PDF
Introduction to Docker at SF Peninsula Software Development Meetup @Guidewire
PPTX
Dockerizing stashboard - Docker meetup at Twilio
LinuxKit and Moby, news from DockerCon 2017 - Austin,TX
Running Docker on ARM
Developer workflow with docker
Wordcamp Bratislava 2017 - Docker! Why?
LinuxKit: the first five months by Justin Cormack & Riyaz Faizullabhoy (Docker)
Introduction to Docker at SF Peninsula Software Development Meetup @Guidewire
Dockerizing stashboard - Docker meetup at Twilio

What's hot (20)

PDF
Introduction to Docker
PPTX
Introduction to docker and oci
PDF
Docker Meetup Rosenheim: Container Runtimes
PDF
Docker & GitLab
PPTX
Containers #101 : Docker ONBUILD triggers and Introduction to Docker Compose
PDF
Docker 101 @KACST Saudi HPC 2016
PPTX
Docker e git lab
PDF
Rkt Container Engine
PDF
Docker compose
PDF
Getting started with docker
PDF
Introduction to Docker and all things containers, Docker Meetup at RelateIQ
PDF
Docker multi-stage build
PPTX
Containerd - core container runtime component
PDF
Building Reusable Development Environments with Docker
PDF
Docker Introduction
PDF
Docker Introduction
PPTX
Docker - 15 great Tutorials
PPTX
John Engates Keynote at Dockercon 14
PDF
The world of Containers with Podman, Buildah, Skopeo by Seema - CCDays
PPTX
docker compose
Introduction to Docker
Introduction to docker and oci
Docker Meetup Rosenheim: Container Runtimes
Docker & GitLab
Containers #101 : Docker ONBUILD triggers and Introduction to Docker Compose
Docker 101 @KACST Saudi HPC 2016
Docker e git lab
Rkt Container Engine
Docker compose
Getting started with docker
Introduction to Docker and all things containers, Docker Meetup at RelateIQ
Docker multi-stage build
Containerd - core container runtime component
Building Reusable Development Environments with Docker
Docker Introduction
Docker Introduction
Docker - 15 great Tutorials
John Engates Keynote at Dockercon 14
The world of Containers with Podman, Buildah, Skopeo by Seema - CCDays
docker compose
Ad

Similar to Rexdockercon2017 (20)

PPTX
docker : how to deploy Digital Experience in a container drinking a cup of co...
PPTX
.docker : how to deploy Digital Experience in a container drinking a cup of c...
PPTX
Dockerize the World
PPTX
.docker : How to deploy Digital Experience in a container, drinking a cup of ...
PPTX
Docker Ecosystem on Azure
PPTX
Dockerize the World - presentation from Hradec Kralove
PDF
Faster and Easier Software Development using Docker Platform
PDF
Docker at Djangocon 2013 | Talk by Ken Cochrane
PDF
Django and Docker
PDF
Package your Java EE Application using Docker and Kubernetes
PPTX
Cohesion Techsessie Docker - Daniel Palstra
PDF
ExpoQA 2017 Using docker to build and test in your laptop and Jenkins
PDF
Michigan IT Symposium 2017 - Container BOF
PDF
IBM Bluemix Paris Meetup #14 - Le Village by CA - 20160413 - Introduction à D...
PDF
O'Reilly Software Architecture Conference London 2017: Building Resilient Mic...
PDF
Docker Oxford launch - Introduction to Docker
PPTX
Docker for .NET Developers
PPT
IBM WebSphere Application Server traditional and Docker
PDF
Informix on Docker Hub
PDF
Real-World Docker: 10 Things We've Learned
docker : how to deploy Digital Experience in a container drinking a cup of co...
.docker : how to deploy Digital Experience in a container drinking a cup of c...
Dockerize the World
.docker : How to deploy Digital Experience in a container, drinking a cup of ...
Docker Ecosystem on Azure
Dockerize the World - presentation from Hradec Kralove
Faster and Easier Software Development using Docker Platform
Docker at Djangocon 2013 | Talk by Ken Cochrane
Django and Docker
Package your Java EE Application using Docker and Kubernetes
Cohesion Techsessie Docker - Daniel Palstra
ExpoQA 2017 Using docker to build and test in your laptop and Jenkins
Michigan IT Symposium 2017 - Container BOF
IBM Bluemix Paris Meetup #14 - Le Village by CA - 20160413 - Introduction à D...
O'Reilly Software Architecture Conference London 2017: Building Resilient Mic...
Docker Oxford launch - Introduction to Docker
Docker for .NET Developers
IBM WebSphere Application Server traditional and Docker
Informix on Docker Hub
Real-World Docker: 10 Things We've Learned
Ad

Recently uploaded (20)

PDF
Digital Logic Computer Design lecture notes
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PPTX
Lecture Notes Electrical Wiring System Components
PPTX
Sustainable Sites - Green Building Construction
PPTX
Lesson 3_Tessellation.pptx finite Mathematics
PPT
Mechanical Engineering MATERIALS Selection
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PPTX
Internet of Things (IOT) - A guide to understanding
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PPTX
UNIT 4 Total Quality Management .pptx
PDF
composite construction of structures.pdf
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PPTX
Construction Project Organization Group 2.pptx
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PPTX
OOP with Java - Java Introduction (Basics)
DOCX
573137875-Attendance-Management-System-original
Digital Logic Computer Design lecture notes
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
Lecture Notes Electrical Wiring System Components
Sustainable Sites - Green Building Construction
Lesson 3_Tessellation.pptx finite Mathematics
Mechanical Engineering MATERIALS Selection
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
Internet of Things (IOT) - A guide to understanding
CYBER-CRIMES AND SECURITY A guide to understanding
UNIT 4 Total Quality Management .pptx
composite construction of structures.pdf
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
UNIT-1 - COAL BASED THERMAL POWER PLANTS
Construction Project Organization Group 2.pptx
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
OOP with Java - Java Introduction (Basics)
573137875-Attendance-Management-System-original

Rexdockercon2017

  • 1. Docker Rex Docker Con 2017 Guillaume Bizet Solution Architect @ Finaxys gbizet@finaxys.com
  • 2. Keynote “Multi-stage builds” :With multi-stage builds you can now easily separate your build-time and runtime container images, allowing development teams to ship minimal and efficient images. LinuxKit :LinuxKit includes the tooling to allow building custom Linux subsystems that only include exactly the components the runtime platform requires. All system services are containers that can be replaced, and everything that is not required can be removed. All components can be substituted with ones that match specific needs. It is a kit, very much in the Docker philosophy of batteries included but swappable Hyper-V pour linux : Microsoft HyperV now support isolation for Linux Containers ! Oracle is now on Docker store ! Certified and free for dev versions ! Modernize Traditional Applications (MTA) Program Image2docker
  • 3. Keynote … Huge ! •At the core of Moby is a framework to assemble specialized container systems. It provides: •A library of containerized components for all vital aspects of a container system: OS, container runtime, orchestration, infrastructure management, networking, storage, security, build, image distribution, etc. •Tools to assemble the components into runnable artifacts for a variety of platforms and architectures: bare metal (both x86 and Arm); executables for Linux, Mac and Windows; VM images for popular cloud and virtualization providers. •A set of reference assemblies which can be used as-is, modified, or used as inspiration to create your own. •All Moby components are containers, so creating new components is as easy as building a new OCI-compatible container. https://github.com/moby/moby
  • 4. Solomon explains with 2 pics See also : https://blog.docker.com/2017/04/introducing-the-moby-project/
  • 5. How to rebuild docker (windows)? •https://github.com/moby/moby/blob/master/Dockerfile.windows • Build the docker executable binaries by running one of the following: •# >> $DOCKER_GITCOMMIT=(git rev-parse --short HEAD) •# >> docker run --name binaries -e DOCKER_GITCOMMIT=$DOCKER_GITCOMMIT nativebuildimage hackmake.ps1 -Binary •# >> docker run --name binaries -e DOCKER_GITCOMMIT=$DOCKER_GITCOMMIT -m 2GB nativebuildimage hackmake.ps1 -Binary (if using Hyper-V containers) •And Voila !
  • 7. A quick hands-on with and •git clone https://github.com/linuxkit/linuxkit.git •docker run --rm -v D:SRClinuxkit:/app -v "/var/run/docker.sock:/var/run/docker.sock" pottava/moby build linuxkit.yml
  • 8. A quick hands-on with and •docker run --rm -v D:SRClinuxkit:/app -it pottava/moby run linuxkit
  • 9. The yml behind ! •https://raw.githubusercontent.com/linuxkit/linuxkit/master/linuxkit.yml •What if you want change the output ? •Inital yml have and the build make this •outputs: • - format: kernel+initrd • - format: iso-bios • - format: iso-efi
  • 10. Change the output ?  •Edit the yml and change output : •To
  • 11. Image2docker ? •Image2Docker is a Powershell module that you can point at a virtual hard disk image, scan for common Windows components and suggest a Dockerfile. •Supported Artifacts •This project currently supports discovery of the following artifacts: •Microsoft Windows Server Roles and Features •Microsoft Windows Add/Remove Programs (ARP) •Microsoft Windows Server Domain Name Server (DNS) •Microsoft Windows Internet Information Services (IIS) –HTTP Handlers in IIS configuration –IIS Websites and filesystem paths –ASP.NET web applications •Microsoft SQL Server instances •Apache Web Server
  • 12. Image2docker ? Get Started •https://github.com/docker/communitytools-image2docker-win •Install-Module Image2Docker •Import-Module Image2Docker •Then • ConvertTo-Dockerfile -ImagePath c:dockermyimage.wim •Exemple : • ConvertTo-Dockerfile -ImagePath c:vmsiis.vhd -Artifact IIS -ArtifactParam aspnet- webapi -OutputPath c:i2d2 • cd c:i2d2 • docker build -t aspnet-webapi . • docker run -d -p 80:80 aspnet-webapi
  • 13. Usefull links •Blog :http://2017.dockercon.com/blog/ •Awesome talk of Diogo Monica and Riyaz Faizullabhoy •https://www.slideshare.net/Docker/secure-substrate-least-privilege- container-deployment?ref=https://blog.docker.com/2017/04/dockercon- 2017-top-rated-sessions/ •Moby repo : https://github.com/moby/moby.git •LinuxKit repo : https://github.com/linuxkit/linuxkit •InfraKit repo : https://github.com/docker/infrakit.git •Image2docker repo : https://github.com/docker/communitytools- image2docker-win