# Docker socket

> The Unix socket, usually `/var/run/docker.sock`, through which the Docker CLI talks to the Docker daemon.

_Updated November 23, 2026_

Whoever can write to the socket controls every container on the host, so it is normally owned by root and the `docker` group. A user outside that group sees "permission denied while trying to connect to the Docker daemon socket".

The [error page](https://envhaven.com/errors) for that message explains the fix.

## Keep reading

- [Docker](https://envhaven.com/glossary/docker)
- [Agent sandbox](https://envhaven.com/glossary/agent-sandbox)
- [Self-hosting](https://envhaven.com/glossary/self-hosting)

Source: https://envhaven.com/glossary/docker-socket
