Docker Engine: protect the Docker daemon socket
Answer: By default, Docker runs through a non-networked UNIX socket.
SSH access
The daemon can also optionally communicate using SSH or a TLS (HTTPS) socket.
SSH is one way to protect the Docker daemon socket on a remote machine.
The SSH user must have permission to access the docker socket there.
TLS access
You can also use TLS (HTTPS) to protect the Docker daemon socket.
TLS is the option when Docker must be reachable through HTTP rather than SSH, in a safe manner.
Daemon mode allows only clients authenticated by a certificate signed by that CA.
Using TLS and managing a CA is an advanced topic.
See also
Claims
- id: C1 claim: By default, Docker runs through a non-networked UNIX socket. source: S1 evidence: "By default, Docker runs through a non-networked UNIX socket."
- id: C2 claim: It can also communicate using SSH or a TLS (HTTPS) socket. source: S1 evidence: "It can also optionally communicate using SSH or a TLS (HTTPS) socket."
- id: C3 claim: SSH can be used to protect the Docker daemon socket. source: S1 evidence: "Use SSH to protect the Docker daemon socket"
- id: C4 claim: The page is titled Protect the Docker daemon socket. source: S2 evidence: "title: Protect the Docker daemon socket"
Sources
- [S1] Protect the Docker daemon socket. Docker, Inc.. https://docs.docker.com/engine/security/protect-access/ . License: Apache License 2.0. Accessed 2026-11-24.
- [S2] Protect the Docker daemon socket (source). Docker, Inc.. https://raw.githubusercontent.com/docker/docs/main/content/manuals/engine/security/protect-access.md . License: Apache License 2.0. Accessed 2026-11-24.
License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Docker, Inc., Protect the Docker daemon socket; Docker, Inc., Protect the Docker daemon socket (source). Apache-2.0 (https://raw.githubusercontent.com/docker/docs/main/LICENSE). Copyright Docker, Inc. Text was condensed and changed from the originals.
License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: Docker, Inc., Protect the Docker daemon socket; Docker, Inc., Protect the Docker daemon socket (source). Apache-2.0 (https://raw.githubusercontent.com/docker/docs/main/LICENSE). Copyright Docker, Inc.
Cite this
iinventedlight. 2026. "Docker Engine: protect the Docker daemon socket." iinventedlight Library, iil:note:qhjh9vzs, version of 2026-11-24. https://iinventedlight.com/library/notes/docker-protect-access/. License: CC-BY-4.0.
@misc{iil_note_qhjh9vzs,
author = {{iinventedlight}},
title = {{Docker Engine: protect the Docker daemon socket}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-24},
url = {https://iinventedlight.com/library/notes/docker-protect-access/},
note = {Permanent ID iil:note:qhjh9vzs. License: CC-BY-4.0.},
}
Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).
Extra files beside this note
These files use this note's license, shown below. Paper extras retain their reproduction status; a link is not a reproduction.
- docker-protect-access.schema.json (schema; CC-BY-4.0)
- docker-protect-access.table.json (table; CC-BY-4.0)
For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/docker-protect-access.md.