Docker Architecture
Docker is client-server type architecture-d application where the docker client initiate request to Docker Server which is a daemon process . The server process the request for which it does various activities like : building, storing, running various containers. It also helps to setup network .
Client talks to daemon using REST APIs over the network
The server and client could be on same or different machine.
Docker Client : It runs command using CLI or script and using API layer it passes those command to Docker server. Some example of such command is :
docker ps
docker images
docker build
docker run
Docker Server : Docker server listens to API requests and acts on those. Based on those requests it manages the objects like : Images, Networks, Containers and Storage.
Docker Registry : As the name suggests, it stores the docker images which can be pulled as a ready to run application . After building an application, docker server creates the images which can be stored in registry for reuse which saves a lot of time. There are two types of registry : Public and Private
Public registry is Docker Hub which hosts a lot of images uploaded by various users . Those are ready to use and can be accessed by anyone having docker hub account. A lot of open source software are already available as image in docker hub which can be pulled with a command and can be used for your purpose.
Private Registry : As there are software which are private to an enterprise . For that a private repository can be created .
Comments
Post a Comment