Docker Containers
Docker Containers
Docker Containers
Containers
Problematic
Let’s take the example of a company that’s developing a Java Application.
A developer uses GlassFish as The tester also has to install GlassFish The system admin must also install GlassFish
an Application Server on their system on their system to deploy the application
The installation of GlassFish must be done separately on three different computers due to the difference in computer
environments
Solution?
Use Docker
Containers!
Build Ship Run
Containers allow you to package an application and its dependencies without having to install software locally on each
device.
Introduction to Docker
Introduction to
Docker
What is Docker?
• Docker is an open platform for developing, shipping, and
running applications.
• The isolation and security allow you to run many containers simultaneously
on a given host.
• This means you can run more containers on a given hardware combination
than if you were using virtual machines. You can even run Docker
containers within host machines that are actually virtual machines!
Introduction to
Docker
What’s a container?
• A Container is an executable
software package that includes all
dependencies (frameworks,
libraries, etc…) required to
execute an application.
• No isolation between
different applications
• Wasted ressources
• Difficult to migrate
Why use
Docker?
Limitations of VMs
• Each VM requires CPU
Allocation, RAM
Allocation, Storage…
• Application portability
not guaranteed.
Why use Docker?
Key Benefits of Docker Containers
Secur
e
Lightweight
Docker Objects
Docker
Objects
Docker Images
• A Docker Image is a read-only template
with instructions for creating a Docker
container.
• Often, an image is based on another
image, with some additional
customization. For example, you
may build an image which is based
on
the ubuntu image, but installs the
Apache web server and your
application, as well as the
configuration details needed to make
your application run.
• You might create your own images
Docker Objects
How to create Docker Images? (Dockerfile)
BUILD RUN