top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Docker: How internally docker client communicate to docker host ?

+1 vote
433 views

I know docker client is used to launch docker containers on docker host. Which protocol is used between docker client and docker host ? Is it necessary docker client run on the same host in which docker client run ?

posted Sep 2, 2017 by Vikram Singh

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

At a very high level, Docker consists of following three major components:
- Docker Client
- Docker Host
- Docker Registry

Each component gets involved while launching Docker container.
Though, Docker client communicates to Docker host through command line interface or using docker compose, internally those CLI commands gets converted into REST API and Docker host serves these REST Requests.

Reference:
https://docs.docker.com/engine/api/#api-example

answer Sep 3, 2017 by Harshita
Similar Questions
+1 vote

There are multiple cases:
1. A number of containers have been launched in the same host. how these container communicate to each other
2. Out of "x" numbers of containers in the same host, I want to enable communication between two specific containers. How I can achieve this ?
3. Containers have been launched into different hosts machine and I want to enable communication between these containers. What are the options available ?

+3 votes

I have one host machine and want to run multiple docker containers and each container I want to run different web servers.
How I can achieve this ? Sharing the steps would be good enough for me to proceed. Thanks in advance.

...