Docker Presentation Ayush

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 21

DOCKER.

io
Introduction To Docker and Docker Networking
DOCKER
• Docker is a container Management Service.

• Containers are isolated from one another and bundle


their own software, libraries and configuration files.

• They can communicate with each other through well


defined channels.

• Windows based docker system can be only installed


on windows & Linux based docker system can be
only installed on Linux.
COMPONENTS OF DOCKER
• Docker for Mac
• It allows one to run Docker containers on the Mac OS.
• Docker for Linux
• It allows one to run docker containers on the Linux OS.
• Docker for Windows
• It allows one to run docker containers on the windows OS.
• Docker Engine
• It is used for building docker images and creating docker containers.
• Docker Hub
• This is the registry which is used to host various Docker images.
• Docker Compose
• Used to Define applications using multiple Docker Containers.
Virtual Machines v/s Docker Containers
• Each VM has a separate OS. • Each container can share OS

• Boots in minutes • Boots in second

• VMs are of few GBs • Containers are lightweight


(KBs/MBs)
• Creating VM takes a relatively
longer time. • Containers can be created in
seconds.
Virtual Machines v/s Docker (WORKINGS)
DOCKER COMPOSE

• Used to run multiple containers as


a single service.
• For example, suppose you had a
application which required NGINX
and MySQL, you could create one
file which would start both the
containers as a service without the
need to start each one separately.
DOCKER REGISTRY
How to install docker in Kali Linux?

PRACTICAL TIME

Refer to this website to install docker: Kali Docker Documentation

# Copy Paste the Commands in your Kali Terminal.


DOCKER NETWORKING
The Default Bridge

HOST www

10.2.52.1
eth0
10.2.52.238

Me
DOCKER INSTALLATION
The Default Bridge

HOST www

10.2.52.1

10.2.52.238

eth0

docker0
172.17.0.1

Virtual Bridge Me
PRACTICAL: DEPLOY THREE DOCKERS
The Default Bridge (After Deploying)
www

HOST
10.2.52.1
10.2.52.238

Thor eth0 eth0


veth
Mjolnir
eth0
veth docker0
eth0
veth
Stormbreaker
172.17.0.1

Me
The Default Bridge (After Deploying)
www
HOST

Now if we want to connect Thor directly


to the internet then we need a term called 10.2.52.1
“NAT Masquerade”. 10.2.52.238

Thor eth0 eth0


veth
Mjolnir
eth0
veth docker0
veth
Stormbr eth0

eaker 172.17.0.1

Me
USER DEFINED BRIDGE
USER DEFINED BRIDGE
172.17.0.2

Thor eth0
www
Mjolnir eth0

Stormbreaker eth0
HOST
10.2.52.1
veth 10.2.52.238

veth eth0
veth
ASGUARD (172.18.0.3) docker0
172.17.0.1
odin eth0 veth asguard
loki eth0 veth 172.18.0.3

Me
THE HOST
172.17.0.2 THE HOST
eth0
Thor
www
Mjolnir eth0
Stormbreaker eth0

HOST
10.2.52.1
veth 10.2.52.238

veth eth0
veth
ASGUARD (172.18.0.3) docker0
172.17.0.1
odin eth0 veth asguard
172.18.0.1
loki eth0 veth

Me
PRACTICAL TIME
Any Questions?

You might also like