Docker Containers
Docker Containers
Definition
Docker is a open source available platform which allows you to develop, ship and
run your applications. It enables everyone to separate their applications from the
infrastructure on which they are built thus making the software delivery process
faster than the normal approach.
2) Secondly this container unit becomes the main unit of distribution or testing
your application.
Now let us understand what a Docker engine is and what goes on inside it.
2) REST API - Which is used by the programs to talk to the daemon and to instruct
it what to do.
The CLI uses the REST API to talk or control the docker daemon using CLI
commands. The daemon can create and manage docker objects such as the
image, container, network or the volumes.
Docker has a client-server architecture. The docker client communicates with the
docker daemon, which usually build, run or distribute the containers. Docker
client and daemon can run on same system or a docker client can communicate to
a remote docker daemon. Both of them uses REST API, over UNIX sockets or a
network interface to communicate.
Docker Registries
It is used to store docker images. One such public registry is the Docker Hub.
Docker by default uses Docker Hub to look for images.When docker pull or docker
run command are used, it pulls the required image from the registry and when
you use docker push, the image is pushed to the registry.
Docker Objects
When we use docker there are different docker objects that we come across. Let
us check them one by one and get a brief overview of some of them
Docker Images : Docker image is a read only template with different commands
for creating a container. We can also write down our own custom images and
publish it over Docker Hub.
Docker Containers
It is the runnable instance of an docker image. Anyone can create,run, start, stop
or delete a container using API or CLI commands. Container can be connected to
one or more virtual private networks.
Docker Services
It allows us to scale containers across multiple docker daemons, which all
together works as a swarm cluster with multiple managers or workers. All the
members in a swarm is a docker daemon and they communicate with each other
using the Docker API.
For More Information about Docker & Kubernetes Online Training ClickHere