Dockers
Dockers
Native Computing
BootCamp
In the Collaboration with MOIT&T Pakistan.
DOCKER
Table Of Contents
Introduction To Dockers
Dockers Architecture
Dockers Components
Docker Objects
Docker Deployment and Orchestration
Dockers Advantages
Dockers Disadvantages
Conclusion
Introduction To Dockers
Docker in cloud computing is a tool that is used to automate
the deployment of applications in an environment designed to
manage containers. It is a container management service.
These containers help applications to work while they are being
shifted from one platform to another. Docker’s technology is
distinctive because it focuses on the requirements of
developers and systems. This modern technology enables
enterprises to create and run any product from any geographic
location.
Dockers Architecture
Dockers Architecture
Docker Client
Docker users can interact with Docker through a client. When any docker commands
run, the client sends them to the dockerd daemon, which carries them out. Docker API
is used by Docker commands. Docker clients can communicate with more than one
daemon.
Docker Registries
It is the location where the Docker images are stored. It can be a public docker
registry or a private docker registry. Docker Hub is the default place of docker images,
its stores’ public registry. You can also create and run your own private registry.
Dockers Components
• DOCKER Client
• Docker Host
• Docker Daemon
• Docker Images
Docker Objects
Images
Docker images are read-only templates with instructions to create a docker container.
Docker image can be pulled from a Docker hub and used as it is, or you can add additional
instructions to the base image and create a new and modified docker image
Containers
After you run a docker image, it creates a docker container. All the applications and their
environment run inside this container. You can use Docker API or CLI to start, stop, or delete
a docker container.
Volumes
The persisting data generated by docker and used by Docker containers are stored in
Volumes. They are completely managed by docker through docker CLI or Docker API.
Volumes work on both Windows and Linux containers. Rather than persisting data in a
container’s writable layer, it is always a good option to use volumes for it.
Docker Objects
Networks
Docker networking is a passage through which all the isolated containers communicate. There are
mainly five network drivers in docker:
Bridge:
• It is the default network driver for a container. You use this network when your
application is running on standalone containers, i.e. multiple containers
communicating with the same docker host.
Host:
• This driver removes the network isolation between docker containers and docker hosts.
It is used when you don’t need any network isolation between the host and container.
Overlay:
• This network enables swarm services to communicate with each other. It is used when
the containers are running on different Docker hosts or when swarm services are
formed by multiple applications.
None: This driver disables all the networking.
macvlan: This driver assigns mac addresses to containers to make them look like physical
devices. The traffic is routed between containers through their mac addresses.
Docker Deployment And
Orchestration
• Docker plugins:
Docker plugins (link resides outside ibm.com) can be used to make Docker
even more functional. A number of Docker plugins are included in the Docker
Engine plugin system, and third-party plugins can be loaded as well.
• Docker Compose:
Developers can use Docker Compose to manage multi-container applications,
where all containers run on the same Docker host. Docker Compose creates a YAML
(.YML) file that specifies which services are included in the application and can
deploy and run containers with a single command. Because YAML syntax is
language-agnostic, YAML files can be used in programs written in Java, Python,
Ruby, and many others languages.
Dockers Advantages