3. Docker
Docker is an open platform for developing,
shipping, and running applications.
Docker enables you to separate your
applications from your infrastructure so you
can deliver software quickly.
With Docker, you can manage your
infrastructure in the same ways you manage
your applications.
Docker reduce the delay between writing code
and running it in production.
5. Why docker?
Virtual Machine
A virtual machine is capable of performing
tasks such as running applications and
programs
A host can have several virtual machines
running at a specific time.
Docker containers are much smaller and
require far fewer resources than a VM.
The lightweight architecture of Docker
containers is less resource-intensive than
6. The docker containers are suited for situations
where you want to run multiple applications
over a single operating system
7. Difference between Docker and VM
DOCKER VIRTUAL MACHINE
Boot-Time Boots in a few seconds. It takes a few minutes
for VMs to boot.
Runs on Dockers make use of the
execution engine.
VMs make use of the
hypervisor .
Memory Efficiency No space is needed to
virtualize, hence less
memory.
Requires entire OS to be
loaded before starting
the surface, so less
efficient.
Deployment Deploying is easy as only
a single image,
containerized can be
used across all
platforms.
Deployment is
comparatively lengthy as
separate instances are
responsible for
execution.
8. Advantage
App run separately from each other (Isolate
from each other)
Less OS maintenance.
Efficient.
Fast deployment.
Docker provides speed & efficiency over the
traditional virtualized hardware.
Each & every separate app have their own
dependencies.
19. Docker container
Clones/Copy the above docker image and
make it as a containers which is then ready to
execute.
Create Docker Container
# docker run -d --name clx_server1 -p 80:80 nginx:latest
20. Docker container
List running Docker containers
# docker ps
List all Docker containers
# docker ps –a
21. Start Container
Start a Container
# docker start clx_server1
Stop a Container
# docker stop clx_server1