concept Docker host in category microservice

appears as: Docker host
Microservices Security in Action

This is an excerpt from Manning's book Microservices Security in Action.

Figure 10.4 (copied from appendix E) illustrates the communication between a Docker client and a Docker host. If you want to intercept the communication between the client and host and see what’s going on, you can use a tool like socat (see appendix E, section E.15).

Figure 10.4 In this high-level Docker component architecture, the Docker client talks to the Docker daemon running on the Docker host over a REST API to perform various operations on Docker images and containers.

So far in this chapter, most of the Docker commands we used via the Docker client assumed we ran both the Docker client and the daemon in the same machine. In this section, we discuss how to set up a Docker host to accept requests securely from a remote Docker client. In practice, this isn’t the case when we run Docker with Kubernetes (see appendix J). You don’t need direct access to the Docker daemon, but only to the Kubernetes API server. In chapter 11, we discuss securing access to the Kubernetes API server. Still, many people run Docker without Kubernetes; for example, those who use the CI/CD tools to spin up Docker containers that connect remotely to a Docker host. In such cases, we need to expose the Docker daemon securely to the remote clients.