Sei sulla pagina 1di 19

Docker Introduction

Table of Content
• Docker Definition
• Docker Vs Virtualization
• Installation
• Images and Registry
• Containerizing an App
• Docker Commands
• Demo
Docker Definition
• Docker is a computer program
that performs operating-
system-level virtualization also
known as containerization.

• Provide a uniformed wrapper


around a software package:
«Build, Ship and Run Any App,
Anywhere»
Similar to shipping containers:
The container is always the
same, regardless of the
contents and thus fits on all
trucks, cranes, ships, ...
Docker Vs Virtualization
• Approaches for running a application.
– One Application per Server
– Hypervisors / VM ware
– Containers
Application Running on Server

• Problems with Server

– Procurement of Hardware
– Installation of Software
– Software licensing
– Administration
– Only one app running per
server
Hypervisor / VM ware
• Benefits
– Multiple apps per server
• Issues
– Uses CPU
– Uses RAM
– Uses disk
– May have license cost
– Requires admin time
Containers
• Platform independence: Build it
once, run it anywhere
• Do not require separate OS for
running
• Effective isolation and resource
sharing
• Speed: Start, create, replicate or
destroy containers in seconds
• Immense and smooth scaling
• Operational simplicity
Comparison
Where is docker ????
Docker Installation
• Can be installed on
– Windows
– Linux
– Mac OS
• Link to download
– https://docs.docker.com/
install/#supported-
platforms
Docker Interaction
• Daemon - docker engine
– Manages orchestration
– Building Images
– Networking
• Container-d
– Manage container lifecycle
• Image transfer/storage
• Container Execution
• OCI (Open Container Initiative)
– Establishes common standards for
container
– Maintains OCI specification for
runtime and images
Images and Registries
• Registries
– OnCloud
– OnPremise
• Repositories of Images
– Public
– Private
– On Premise
• Command
– docker image pull
<imagename>
• https://hub.docker.com/expl
ore/
Images
• An image is an inert,
immutable(read-only),
file that's essentially a
snapshot of a container.
• Image has
– OS files
– App Files
– Manifest
Images and Containers
Containerizing an App

Command New Image


with App
Code

Command : docker build [OPTIONS] PATH | URL |


eg: $ docker build http://github.com/nigelpoulton/psweb
Docker Commands
• Demo
• Thank You …..!!!!

Potrebbero piacerti anche