What Is Docker?: Drawback of Virtualization
What Is Docker?: Drawback of Virtualization
3. What is Docker?
Docker is a platform which packages an application and all its dependencies together
in the form of containers.
4. Dockerfile, Images & Containers
when the Dockerfile is built, it becomes a Docker Image and when we run the Docker
Image then it finally becomes a Docker Container.
Dockerfile: A Dockerfile is a text document which contains all the commands that a user can
call on the command line to assemble an image. So, Docker can build images automatically
by reading the instructions from a Dockerfile. You can use docker build to create an
automated build to execute several command-line instructions in succession.
Docker Image: In layman terms, Docker Image can be compared to a template which is used
to create Docker Containers. So, these read-only templates are the building blocks of a
Container. You can use docker run to run the image and create a container.
Docker Images are stored in the Docker Registry. It can be either a user’s local repository or
a public repository like a Docker Hub which allows multiple users to collaborate in building
an application.
Docker Container: It is a running instance of a Docker Image as they hold the entire package
needed to run the application. So, these are basically the ready applications created from
Docker Images which is the ultimate utility of Docker.
Docker Swarm is a technique to create and maintain a cluster of Docker Engines. The Docker
engines can be hosted on different nodes, and these nodes, which are in remote locations,
form a Cluster when connected in Swarm mode.
6. Hands-On