Find out /var/run/docker.sock premise is to understand the parameters of the docker's client + server architecture, following the implementation of docker version result of the command:
docker be seen running on the client and server computer composition, we enter docker version is actually a command through the client sends a request to Doceker Daemon services on the same computer, the information returned by the Docker Daemon, the client after receiving the information presentation in the console, a schematic diagram of stack overflow from the following:
docker.sock is docker client socket file and docker daemon for communication localhost.
Today, we directly call the socket file to create a container, the container start. (In fact, call docker daemon API directly rather than through a docker client way to manipulate docker daemon).
Today, we directly call the socket file to create a container, the container start. (In fact, call docker daemon API directly rather than through a docker client way to manipulate docker daemon).
https://www.jianshu.com/p/dd0c814680ba