SlideShare a Scribd company logo
Docker basics
Requirements
Install and configure operating systems
TCP/IP
CLI semi expert
CLI editors (nano, vim, …)
Virtual machines environments
Software
Application
Services
Architecture
Traditional servers (bare metal)


Virtual machines


Containers
Traditional servers (bare metal)
Architecture
Traditional servers (bare metal)



Pros Cons
Raw resources use Slow deployment time
Isolation Expensive
Wasted resources
Difficult to scale
Difficult to migrate
Complex configuration
Architecture
Virtual machines



Architecture
Virtual machines



Pros Cons
Good use of resources Resource allocation
Easy to scale Vendor lockin
Easy to backup and migrate Complex configuration
Cost efficiency
Flexibility
Architecture
Containers
Architecture
Containers



Pros Cons
Isolation Architecture
Lightweight Resource heavy apps
Resource effective
Easy to migrate
Security
Low overhead
Mirror environments
Architecture
A container is a standard unit of software
that packages up code and all its
dependencies so the application runs
quickly and reliably from one computing
environment to another.
What is a container?
What is a container?
Container Engine
Volumes
Ports
Networks
Hosts
Links
What is a container? (own resources)
Docker is a tool designed to make
it easier to create, deploy, and run
applications by using containers.
What is docker?
Containers options
LXD
Basic concepts
Docker can build images automatically by reading the
instructions from a Dockerfile. A Dockerfile is a text
document that contains all the commands a user could
call on the command line to assemble an image. Using
docker build users can create an automated build that
executes several command-line instructions in
succession.
Dockerfile
FROM ubuntu:15.04
COPY . /app
RUN make /app
CMD python /app/app.py
Dockerfile
A Docker image is built up from a series
of layers. Each layer represents an
instruction in the image’s Dockerfile.
Each layer except the very last one is
read-only.
Docker layers
Docker layers
A Docker image is a file, comprised of multiple
layers, used to execute code in a Docker
container. An image is essentially built from the
instructions for a complete and executable
version of an application, which relies on the
host OS kernel.
Docker image
Docker architecture
A container is launched by running an image. An image is an
executable package that includes everything needed to run an
application the code, a runtime, libraries, environment variables, and
configuration files.
A container is a runtime instance of an image what the image becomes
in memory when executed (that is, an image with state, or a user
process). You can see a list of your running containers with the
command, docker ps, just as you would in Linux.
Docker image vs. container
The Registry is a stateless, highly
scalable server side application that
stores and lets you distribute Docker
images. The Registry is open-source,
under the permissive Apache license.
Docker registry
Docker Hub is a cloud-based registry service which allows you
to link to code repositories, build your images and test them,
stores manually pushed images, and links to Docker Cloud so
you can deploy images to your hosts. It provides a centralized
resource for container image discovery, distribution and
change management, user and team collaboration, and
workflow automation throughout the development pipeline.
Docker hub
In case you want to store your own
images you can have a private
registry.
Private registries
A container is a standard unit of software
that packages up code and all its
dependencies so the application runs
quickly and reliably from one computing
environment to another.
Container
Environment
Application
Services
Image types
Local environment
Virtual Box
Your computer
Linux Debian
Docker images
Image Version Type
hello-world latest Application
golang 1.11.1-alpine Application
gcc latest Application
java 7 Application
mysql 5.6 Service
phpmyadmin/phpmyadmin latest Service
mongo latest Service
thinkcube/phpmoadmin latest Service
nginx stable-alpine Service
php 7.2.2-fpm-alpine Service
wordpress 4.9.8-php7.2-apache Service
CLI commands
Docker
docker —version Show docker version
docker info Display system information
docker rmi {image name} Delete specific image
docker —help Show help
Docker images
Command Description Example
docker images List all images
docker images image name List all images with a name
docker pull image name:[tag] Pull image from repository docker pull hello-world
docker history image name Show history of an image docker history hello-world
docker rmi image name Delete specific image docker rmi hello-world
Docker containers
docker container ls Show containers
docker ps Show containers
Run containers
docker run [OPTIONS] IMAGE[:TAG|
@DIGEST] [COMMAND] [ARG…]
docker run hello-world
Run containers
How to run a container and delete ir after
execute
docker run --rm hello-world
Run containers
If an image doesn’t exists
docker run automatically
trigger docker fetch and
download the image.
Docker containers
docker stop container Stop container
docker rm container Delete container
Docker containers - volumes
Volumes are the preferred
mechanism for persisting data
generated by and used by
Docker containers.
Docker containers - volumes
docker run 
--rm 
-v /home/docker/src/gcc:/src 
gcc 
gcc /src/hello-world.c -o /src/hello-world
Workshop TCP/IP ports
Image Port
phpmyadmin/phpmyadmin 8081
thinkcube/phpmoadmin 8082
nginx 8083
wordpress 8084
+ /Paybook
Infrastructure Manager
Claudio Montoya
Thanks!
www.paybook.com

More Related Content

What's hot

Introduction to docker
Introduction to dockerIntroduction to docker
Introduction to docker
Instruqt
 
Docker introduction for the beginners
Docker introduction for the beginnersDocker introduction for the beginners
Docker introduction for the beginners
Juneyoung Oh
 
Docker introduction
Docker introductionDocker introduction
Docker introduction
dotCloud
 
Docker Containers Deep Dive
Docker Containers Deep DiveDocker Containers Deep Dive
Docker Containers Deep Dive
Will Kinard
 
Docker 101 - Getting started
Docker 101 - Getting startedDocker 101 - Getting started
Docker 101 - Getting started
Matheus Marabesi
 
Docker introduction & benefits
Docker introduction & benefitsDocker introduction & benefits
Docker introduction & benefits
Amit Manwade
 
Docker fundamentals
Docker fundamentalsDocker fundamentals
Docker fundamentals
Alper Unal
 
DevOps 3 - Docker.pdf
DevOps 3 - Docker.pdfDevOps 3 - Docker.pdf
DevOps 3 - Docker.pdf
GhofraneFerchichi2
 
Docker 101 - High level introduction to docker
Docker 101 - High level introduction to dockerDocker 101 - High level introduction to docker
Docker 101 - High level introduction to docker
Dr Ganesh Iyer
 
Containerization is more than the new Virtualization: enabling separation of ...
Containerization is more than the new Virtualization: enabling separation of ...Containerization is more than the new Virtualization: enabling separation of ...
Containerization is more than the new Virtualization: enabling separation of ...
Jérôme Petazzoni
 
Docker 101 : Introduction to Docker and Containers
Docker 101 : Introduction to Docker and ContainersDocker 101 : Introduction to Docker and Containers
Docker 101 : Introduction to Docker and Containers
Yajushi Srivastava
 
Introduction to Docker
Introduction to DockerIntroduction to Docker
Introduction to Docker
Aditya Konarde
 
Docker Compose by Aanand Prasad
Docker Compose by Aanand Prasad Docker Compose by Aanand Prasad
Docker Compose by Aanand Prasad
Docker, Inc.
 
Intro docker
Intro dockerIntro docker
Intro docker
Fedir RYKHTIK
 
Introduction to Docker - IndiaOpsUG
Introduction to Docker - IndiaOpsUGIntroduction to Docker - IndiaOpsUG
Introduction to Docker - IndiaOpsUG
Ajeet Singh Raina
 
What is Docker
What is DockerWhat is Docker
What is Docker
Pavel Klimiankou
 
Docker Introduction
Docker IntroductionDocker Introduction
Docker Introduction
MANAOUIL Karim
 
Getting started with Docker
Getting started with DockerGetting started with Docker
Getting started with Docker
Ravindu Fernando
 
Docker Security workshop slides
Docker Security workshop slidesDocker Security workshop slides
Docker Security workshop slides
Docker, Inc.
 
What is Docker
What is Docker What is Docker
What is Docker
Hocine Boukhatem
 

What's hot (20)

Introduction to docker
Introduction to dockerIntroduction to docker
Introduction to docker
 
Docker introduction for the beginners
Docker introduction for the beginnersDocker introduction for the beginners
Docker introduction for the beginners
 
Docker introduction
Docker introductionDocker introduction
Docker introduction
 
Docker Containers Deep Dive
Docker Containers Deep DiveDocker Containers Deep Dive
Docker Containers Deep Dive
 
Docker 101 - Getting started
Docker 101 - Getting startedDocker 101 - Getting started
Docker 101 - Getting started
 
Docker introduction & benefits
Docker introduction & benefitsDocker introduction & benefits
Docker introduction & benefits
 
Docker fundamentals
Docker fundamentalsDocker fundamentals
Docker fundamentals
 
DevOps 3 - Docker.pdf
DevOps 3 - Docker.pdfDevOps 3 - Docker.pdf
DevOps 3 - Docker.pdf
 
Docker 101 - High level introduction to docker
Docker 101 - High level introduction to dockerDocker 101 - High level introduction to docker
Docker 101 - High level introduction to docker
 
Containerization is more than the new Virtualization: enabling separation of ...
Containerization is more than the new Virtualization: enabling separation of ...Containerization is more than the new Virtualization: enabling separation of ...
Containerization is more than the new Virtualization: enabling separation of ...
 
Docker 101 : Introduction to Docker and Containers
Docker 101 : Introduction to Docker and ContainersDocker 101 : Introduction to Docker and Containers
Docker 101 : Introduction to Docker and Containers
 
Introduction to Docker
Introduction to DockerIntroduction to Docker
Introduction to Docker
 
Docker Compose by Aanand Prasad
Docker Compose by Aanand Prasad Docker Compose by Aanand Prasad
Docker Compose by Aanand Prasad
 
Intro docker
Intro dockerIntro docker
Intro docker
 
Introduction to Docker - IndiaOpsUG
Introduction to Docker - IndiaOpsUGIntroduction to Docker - IndiaOpsUG
Introduction to Docker - IndiaOpsUG
 
What is Docker
What is DockerWhat is Docker
What is Docker
 
Docker Introduction
Docker IntroductionDocker Introduction
Docker Introduction
 
Getting started with Docker
Getting started with DockerGetting started with Docker
Getting started with Docker
 
Docker Security workshop slides
Docker Security workshop slidesDocker Security workshop slides
Docker Security workshop slides
 
What is Docker
What is Docker What is Docker
What is Docker
 

Similar to Docker basics

Accelerate your development with Docker
Accelerate your development with DockerAccelerate your development with Docker
Accelerate your development with Docker
Andrey Hristov
 
Accelerate your software development with Docker
Accelerate your software development with DockerAccelerate your software development with Docker
Accelerate your software development with Docker
Andrey Hristov
 
What is Docker?
What is Docker?What is Docker?
What is Docker?
Shubhrank Rastogi
 
Docker.pptx
Docker.pptxDocker.pptx
Docker.pptx
balaji257
 
Docker slides
Docker slidesDocker slides
Docker slides
Jyotsna Raghuraman
 
Docker - Portable Deployment
Docker - Portable DeploymentDocker - Portable Deployment
Docker - Portable Deploymentjavaonfly
 
Introduction to docker and oci
Introduction to docker and ociIntroduction to docker and oci
Introduction to docker and oci
Romain Schlick
 
Introduction to Dockers.pptx
Introduction to Dockers.pptxIntroduction to Dockers.pptx
Introduction to Dockers.pptx
HassanRaza40719
 
Docker intro
Docker introDocker intro
Docker intro
Frei Zhang
 
containers and virtualization tools ( Docker )
containers and virtualization tools ( Docker )containers and virtualization tools ( Docker )
containers and virtualization tools ( Docker )
Imo Inyang
 
Docker
DockerDocker
Docker
Narato
 
Docker
DockerDocker
Hack the whale
Hack the whaleHack the whale
Hack the whale
Marco Ferrigno
 
Docker for .NET Developers
Docker for .NET DevelopersDocker for .NET Developers
Docker for .NET Developers
Taswar Bhatti
 
Docker In Brief
Docker In BriefDocker In Brief
Docker In Brief
Ritu Kamthan
 
Introduction to Dockers and containers
Introduction to Dockers and containers Introduction to Dockers and containers
Introduction to Dockers and containers
Sri Padaraj M S
 
Docker and containers - Presentation Slides by Priyadarshini Anand
Docker and containers - Presentation Slides by Priyadarshini AnandDocker and containers - Presentation Slides by Priyadarshini Anand
Docker and containers - Presentation Slides by Priyadarshini Anand
PRIYADARSHINI ANAND
 
Docker, Cloud Foundry, Bosh & Bluemix
Docker, Cloud Foundry, Bosh & BluemixDocker, Cloud Foundry, Bosh & Bluemix
Docker, Cloud Foundry, Bosh & Bluemix
IBM
 
Axigen on docker
Axigen on dockerAxigen on docker

Similar to Docker basics (20)

Accelerate your development with Docker
Accelerate your development with DockerAccelerate your development with Docker
Accelerate your development with Docker
 
Accelerate your software development with Docker
Accelerate your software development with DockerAccelerate your software development with Docker
Accelerate your software development with Docker
 
What is Docker?
What is Docker?What is Docker?
What is Docker?
 
Docker.pptx
Docker.pptxDocker.pptx
Docker.pptx
 
Docker slides
Docker slidesDocker slides
Docker slides
 
Docker - Portable Deployment
Docker - Portable DeploymentDocker - Portable Deployment
Docker - Portable Deployment
 
Introduction to docker and oci
Introduction to docker and ociIntroduction to docker and oci
Introduction to docker and oci
 
Docker
DockerDocker
Docker
 
Introduction to Dockers.pptx
Introduction to Dockers.pptxIntroduction to Dockers.pptx
Introduction to Dockers.pptx
 
Docker intro
Docker introDocker intro
Docker intro
 
containers and virtualization tools ( Docker )
containers and virtualization tools ( Docker )containers and virtualization tools ( Docker )
containers and virtualization tools ( Docker )
 
Docker
DockerDocker
Docker
 
Docker
DockerDocker
Docker
 
Hack the whale
Hack the whaleHack the whale
Hack the whale
 
Docker for .NET Developers
Docker for .NET DevelopersDocker for .NET Developers
Docker for .NET Developers
 
Docker In Brief
Docker In BriefDocker In Brief
Docker In Brief
 
Introduction to Dockers and containers
Introduction to Dockers and containers Introduction to Dockers and containers
Introduction to Dockers and containers
 
Docker and containers - Presentation Slides by Priyadarshini Anand
Docker and containers - Presentation Slides by Priyadarshini AnandDocker and containers - Presentation Slides by Priyadarshini Anand
Docker and containers - Presentation Slides by Priyadarshini Anand
 
Docker, Cloud Foundry, Bosh & Bluemix
Docker, Cloud Foundry, Bosh & BluemixDocker, Cloud Foundry, Bosh & Bluemix
Docker, Cloud Foundry, Bosh & Bluemix
 
Axigen on docker
Axigen on dockerAxigen on docker
Axigen on docker
 

Recently uploaded

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
 
Search and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical FuturesSearch and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical Futures
Bhaskar Mitra
 
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
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
DianaGray10
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
Elena Simperl
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Thierry Lestable
 
Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
Frank van Harmelen
 
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
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Tobias Schneck
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
BookNet Canada
 
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
 
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
 
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
 
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
 
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
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
DanBrown980551
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
Product School
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
Laura Byrne
 

Recently uploaded (20)

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
 
Search and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical FuturesSearch and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical Futures
 
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
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
 
Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
 
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...
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
 
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
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
 
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
 
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...
 
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
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
 

Docker basics

  • 2. Requirements Install and configure operating systems TCP/IP CLI semi expert CLI editors (nano, vim, …) Virtual machines environments
  • 4. Architecture Traditional servers (bare metal) 
 Virtual machines 
 Containers
  • 5. Traditional servers (bare metal) Architecture
  • 6. Traditional servers (bare metal)
 
 Pros Cons Raw resources use Slow deployment time Isolation Expensive Wasted resources Difficult to scale Difficult to migrate Complex configuration Architecture
  • 8. Virtual machines
 
 Pros Cons Good use of resources Resource allocation Easy to scale Vendor lockin Easy to backup and migrate Complex configuration Cost efficiency Flexibility Architecture
  • 10. Containers
 
 Pros Cons Isolation Architecture Lightweight Resource heavy apps Resource effective Easy to migrate Security Low overhead Mirror environments Architecture
  • 11. A container is a standard unit of software that packages up code and all its dependencies so the application runs quickly and reliably from one computing environment to another. What is a container?
  • 12. What is a container? Container Engine
  • 13. Volumes Ports Networks Hosts Links What is a container? (own resources)
  • 14. Docker is a tool designed to make it easier to create, deploy, and run applications by using containers. What is docker?
  • 17. Docker can build images automatically by reading the instructions from a Dockerfile. A Dockerfile is a text document that contains all the commands a user could call on the command line to assemble an image. Using docker build users can create an automated build that executes several command-line instructions in succession. Dockerfile
  • 18. FROM ubuntu:15.04 COPY . /app RUN make /app CMD python /app/app.py Dockerfile
  • 19. A Docker image is built up from a series of layers. Each layer represents an instruction in the image’s Dockerfile. Each layer except the very last one is read-only. Docker layers
  • 21. A Docker image is a file, comprised of multiple layers, used to execute code in a Docker container. An image is essentially built from the instructions for a complete and executable version of an application, which relies on the host OS kernel. Docker image
  • 23. A container is launched by running an image. An image is an executable package that includes everything needed to run an application the code, a runtime, libraries, environment variables, and configuration files. A container is a runtime instance of an image what the image becomes in memory when executed (that is, an image with state, or a user process). You can see a list of your running containers with the command, docker ps, just as you would in Linux. Docker image vs. container
  • 24. The Registry is a stateless, highly scalable server side application that stores and lets you distribute Docker images. The Registry is open-source, under the permissive Apache license. Docker registry
  • 25. Docker Hub is a cloud-based registry service which allows you to link to code repositories, build your images and test them, stores manually pushed images, and links to Docker Cloud so you can deploy images to your hosts. It provides a centralized resource for container image discovery, distribution and change management, user and team collaboration, and workflow automation throughout the development pipeline. Docker hub
  • 26. In case you want to store your own images you can have a private registry. Private registries
  • 27. A container is a standard unit of software that packages up code and all its dependencies so the application runs quickly and reliably from one computing environment to another. Container
  • 30. Local environment Virtual Box Your computer Linux Debian
  • 31. Docker images Image Version Type hello-world latest Application golang 1.11.1-alpine Application gcc latest Application java 7 Application mysql 5.6 Service phpmyadmin/phpmyadmin latest Service mongo latest Service thinkcube/phpmoadmin latest Service nginx stable-alpine Service php 7.2.2-fpm-alpine Service wordpress 4.9.8-php7.2-apache Service
  • 33. Docker docker —version Show docker version docker info Display system information docker rmi {image name} Delete specific image docker —help Show help
  • 34. Docker images Command Description Example docker images List all images docker images image name List all images with a name docker pull image name:[tag] Pull image from repository docker pull hello-world docker history image name Show history of an image docker history hello-world docker rmi image name Delete specific image docker rmi hello-world
  • 35. Docker containers docker container ls Show containers docker ps Show containers
  • 36. Run containers docker run [OPTIONS] IMAGE[:TAG| @DIGEST] [COMMAND] [ARG…] docker run hello-world
  • 37. Run containers How to run a container and delete ir after execute docker run --rm hello-world
  • 38. Run containers If an image doesn’t exists docker run automatically trigger docker fetch and download the image.
  • 39. Docker containers docker stop container Stop container docker rm container Delete container
  • 40. Docker containers - volumes Volumes are the preferred mechanism for persisting data generated by and used by Docker containers.
  • 41. Docker containers - volumes docker run --rm -v /home/docker/src/gcc:/src gcc gcc /src/hello-world.c -o /src/hello-world
  • 42. Workshop TCP/IP ports Image Port phpmyadmin/phpmyadmin 8081 thinkcube/phpmoadmin 8082 nginx 8083 wordpress 8084
  • 43. + /Paybook Infrastructure Manager Claudio Montoya Thanks! www.paybook.com