Docker socket

The file-like connection point, usually /var/run/docker.sock, through which programs send commands to the Docker daemon.

Access to the socket is full control of the host.

In more detail

Whoever can write to this Unix socket can start any container with any options, including one that mounts the whole host filesystem, so access to it is equivalent to root on the host. Never mount it into a container you do not fully trust, and never expose the daemon on a network port without TLS client certificates.

Related terms

Taught in

References