Unix socket
A special file that two programs on the same machine use to talk to each other.
In more detail
A Unix domain socket works like a network connection but never leaves the machine, and file permissions decide who may connect. The Docker CLI talks to the daemon through one. Network sockets, by contrast, are identified by an IP address and port.
Related terms
- Docker socket — The file-like connection point, usually /var/run/docker.sock, through which programs send commands to the Docker daemon.
- port — A number from 1 to 65535 that picks out one service on a machine, such as 22 for SSH or 80 for plain web traffic.
- file permissions — Rules on each file saying which user and group own it and who may read, write or run it.
Taught in
- Docker, OCI, The Engine And The CLI — Docker Architecture & Production Containers
- Install Docker And Verify Your Environment — Docker Architecture & Production Containers
- Run The Spine Service And Publish Its Port — Docker Architecture & Production Containers