Containers & Vms
Containers & Vms
Containers & Vms
Containers
“a lightweight, stand-alone, executable package of a
piece of sofwaae that includes eveaything needed to
aun it: code, auntme, system tools, system libaaaies,
setngs.“
Why Containers? Lightweight
● Containers running on a single machine share
that machine's operatng system kernel; they
start instantly and use less compute and RAM.
● Images are constructed from flesystem layers
and share common fles. his minimizes disk
usage and image downloads are much faster.
Why Containers? Standard
● Containers are based on open standards and run
on all major Linux distributons, Microsof
Windows, and on any infrastructure including
VMs, bare-metal and in the cloud.
Why Containers? Secure
● Docker containers isolate applicatons from one
another and from the underlying infrastructure.
Docker provides the strongest default isolaton to
limit app issues to a single container instead of
the entre machine.
Comparing Containers & VMs (1)
Comparing Containers & VMs (2)
● Containers are an abstracton at the app layer that
packages code and dependencies together. Multple
containers can run on the same machine and share
the OS kernel with other containers, each running as
isolated processes in user space. Containers take up
less space than VMs (container images are typically
tens of MBs in size), and start almost instantly.
● Virtual machines (VMs) are an abstracton of physical
hardware turning one server into many servers. he
hypervisor allows multple VMs to run on a single
machine. Each VM includes a full copy of an
operatng system, one or more apps, necessary
binaries and libraries - taking up tens of GBs. VMs
can also be slow to boot.
Containers & VMs Together
Install Docker
Docker Release Schedule
Startng with Docker 17.03, Docker uses a tme-
based release schedule.
● Docker CE Stable releases generally happen
size)
Secret in Compose