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

PDF
The ABC of Docker: The Absolute Best Compendium of Docker
PPTX
PPTX
Multi Stage Docker Build
PDF
Docker Introduction
PDF
Introduction à Docker et utilisation en production /Digital apéro Besançon [1...
PPTX
Docker introduction & benefits
PDF
Getting Started With Docker | Docker Tutorial | Docker Training | Edureka
PPTX
Docker 101 : Introduction to Docker and Containers
The ABC of Docker: The Absolute Best Compendium of Docker
Multi Stage Docker Build
Docker Introduction
Introduction à Docker et utilisation en production /Digital apéro Besançon [1...
Docker introduction & benefits
Getting Started With Docker | Docker Tutorial | Docker Training | Edureka
Docker 101 : Introduction to Docker and Containers

What's hot (20)

PPTX
Abc of docker
PPTX
Docker Compose | Docker Compose Tutorial | Docker Tutorial For Beginners | De...
PDF
Introduction to Docker - VIT Campus
PDF
Introduction to container based virtualization with docker
PDF
What Is Helm
PPTX
Stateful set in kubernetes implementation & usecases
PDF
Hands-On Introduction to Kubernetes at LISA17
PDF
GitOps for Helm Users by Scott Rigby
PPTX
Docker, LinuX Container
PDF
Docker Tutorial.pdf
PDF
Kubernetes
PDF
Helm – The package manager for Kubernetes
PPTX
Intro to Helm for Kubernetes
PPTX
Intro to docker
PPTX
Software Containerization
PPTX
Helm.pptx
PDF
Kubernetes Application Deployment with Helm - A beginner Guide!
PDF
Introduction to Docker
PDF
Kubernetes
Abc of docker
Docker Compose | Docker Compose Tutorial | Docker Tutorial For Beginners | De...
Introduction to Docker - VIT Campus
Introduction to container based virtualization with docker
What Is Helm
Stateful set in kubernetes implementation & usecases
Hands-On Introduction to Kubernetes at LISA17
GitOps for Helm Users by Scott Rigby
Docker, LinuX Container
Docker Tutorial.pdf
Kubernetes
Helm – The package manager for Kubernetes
Intro to Helm for Kubernetes
Intro to docker
Software Containerization
Helm.pptx
Kubernetes Application Deployment with Helm - A beginner Guide!
Introduction to Docker
Kubernetes
Ad

Similar to Docker basics (20)

PPTX
Containerization using docker and its applications
PPTX
Containerization using docker and its applications
PPTX
Dockers and containers basics
PPTX
Virtualization, Containers, Docker and scalable container management services
PDF
Up and running with docker
PDF
PDF
Docker slides
PDF
Accelerate your software development with Docker
PPTX
Accelerate your development with Docker
PPTX
docker technology in INTERNET WORLD.pptx
PDF
Cloud Native Computing - Part III - Containers
PDF
Docker navjot kaur
PDF
Docker up and Running For Web Developers
PDF
Docker Up and Running for Web Developers
PPTX
Docker.pptx
PPTX
ma-formation-en-Docker-jlklk,nknkjn.pptx
PDF
Docker interview Questions-1.pdf
PPTX
Learning Dockers - Step by Step
PDF
Introduction to Docker
PDF
Introduction to Docker Containers - Docker Captain
Containerization using docker and its applications
Containerization using docker and its applications
Dockers and containers basics
Virtualization, Containers, Docker and scalable container management services
Up and running with docker
Docker slides
Accelerate your software development with Docker
Accelerate your development with Docker
docker technology in INTERNET WORLD.pptx
Cloud Native Computing - Part III - Containers
Docker navjot kaur
Docker up and Running For Web Developers
Docker Up and Running for Web Developers
Docker.pptx
ma-formation-en-Docker-jlklk,nknkjn.pptx
Docker interview Questions-1.pdf
Learning Dockers - Step by Step
Introduction to Docker
Introduction to Docker Containers - Docker Captain
Ad

Recently uploaded (20)

PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
MYSQL Presentation for SQL database connectivity
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPT
Teaching material agriculture food technology
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPTX
Big Data Technologies - Introduction.pptx
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PPTX
Cloud computing and distributed systems.
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Encapsulation theory and applications.pdf
Mobile App Security Testing_ A Comprehensive Guide.pdf
Agricultural_Statistics_at_a_Glance_2022_0.pdf
MYSQL Presentation for SQL database connectivity
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Encapsulation_ Review paper, used for researhc scholars
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Teaching material agriculture food technology
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Advanced methodologies resolving dimensionality complications for autism neur...
Big Data Technologies - Introduction.pptx
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Cloud computing and distributed systems.
Dropbox Q2 2025 Financial Results & Investor Presentation
The AUB Centre for AI in Media Proposal.docx
NewMind AI Weekly Chronicles - August'25 Week I
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Encapsulation theory and applications.pdf

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