← All notes

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

Sources

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

Permanent ID: iil:note:qhjh9vzs

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.},
}

Markdown

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.

All artifact files (JSON index)

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.