Introduction to Docker

About me

Karuppiah

Freelancer

 

You can find me on Twitter, GitHub and "Docker Hub" as

@karuppiah7890

What is Docker ?

Docker is a software container platform

What's a Container ?!

Container in this context, is a term belonging to the concept of "Containerisation". We need to define it first

What's Containerisation ?

It's an operating system feature in which the kernel allows the existence of multiple isolated user-space instances. And such instances are called containers

 

For more info on Containerization, check

https://en.wikipedia.org/wiki/Operating-system-level_virtualization

What does Docker actually do ?

Docker is used to "package" software into containers

  • Containers are a way to package software in a format that can run in an isolated manner

 

 

  • Unlike VMs, containers do not bundle a full OS - only libraries and settings required to make the software work are needed

 

 

  • This makes for efficient, lightweight, self-contained systems and guarantees that software will always run the same, regardless of "where" it’s deployed.

Who uses Docker and why ?

  • Developers use Docker to eliminate “works on my machine” problems when collaborating on code with co-workers.

 

  • Operators use Docker to run and manage apps side-by-side in isolated containers to get better compute density.

 

  • Enterprises use Docker to build agile software delivery pipelines to ship new features faster, more securely and with confidence for both Linux, Windows Server, and Linux-on-mainframe apps.

Too much talk.

Demo!

Play With Docker (PWD) Training

Play With Docker (PWD)

Commands

$ docker run

$ docker ps -a

$ docker build

docker run

$ docker run

$ docker ps -a

$ docker build

Running many related containers in a single machine ?

Docker Compose

$ docker-compose

Running many related containers in multiple machines ?

Docker Swarm

$ docker swarm

or other software like

Kubernetes

Introduction to Docker

By Karuppiah N

Introduction to Docker

  • 102