Docker
Docker
AGENDA
• Introduction to Docker?
• Docker Compose
Overview of Docker and
containerization
What is a Container?
That package is portable artifact, easily shared and moved around between a
development team or development and operations team.
Many companies have their own private repositories where they host or the
way they store all the containers.
• At the base of the image ( most of the containers ) have Linux Base Image
because small in size. ( Alpina version or Linux distribution)
• On top of the base image, we do have application image and rest all
images are placed in between them.
Docker vs Virtualization
4. Docker and Virtual Machines are both virtualization tools.
Virtualization Tools
DO CK ER V I RT UA L M ACHI N ES
To view logs from service running inside the container :: docker
logs container_ID
To stop one or more running containers :: docker stop
container_ID container_ID
To list all the stopped and running containers :: docker ps -a / --all
port binding
DockerHub
Registry vs Repository
Docker Registry :: A service providing storage. Can be hosted by
a third party , like AWS . Collection of repositories .
Docker Repository :: collection of related images with same name but different versions.
DockerHub is a registry.
On DockerHub , you can host private or public repositories for your applications.
Dockerfile
In Docker Compose , a user can start all the services (containers)
using a single command.