What is Docker?
Docker is basically a tool for managing containers. We can perform actions on containers like start, stop, pause etc.With Docker, we can run multiple applications on the same hardware and hence benefits us to reduce cost and save time as compared to running apps on VMs.
What is Container?
Container is a lightweight isolated environment that have separate resources like File system , Network system, PID tree for running the application and is powered by Kernel.
How Docker works?
User will provide commands to Docker Client. Via API request , command is sent to Docker server then to ContainerD and then to Kernel.
How Container works?
When the command => docker run is given, it checks in local for the image and creates the resources like 1 PID tree, 1 Network system , 1 copy of image and 1 user. Then the containerD helps to attach the respective resources to the User and the container is created.
What the components of Docker?
• Docker Engine
Docker Engine composes of Docker Client , API and Docker Server
• Docker Image
It is the Root File system, user Filesystem and App Filesystem
• Docker Registry
It is the repository of versions of the 3 filesystems ie Root Filesystem, User filesystem and App filesystem.
Top comments (0)