---
source: https://iinventedlight.com/library/notes/docker-protect-access.md
title: "Docker Engine: protect the Docker daemon socket"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "Apache License 2.0 (Docker, Inc.); Apache License 2.0 (Docker, Inc.); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "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."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-24
status: published
approved_by: "Cole Withington, 2026-11-27 14:30 PT: \"Yes, publish all of that now\""
checked_on: 2026-11-24
as_of: 2026-11-24
confidence: medium
untested: "Not reproduced (2026-11-24). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-devops: docker-protect-access"
tags: [docker, security, tls, ssh, daemon]
client: Librarian
sources:
  - id: S1
    title: "Protect the Docker daemon socket"
    publisher: Docker, Inc.
    url: https://docs.docker.com/engine/security/protect-access/
    accessed: 2026-11-24
    license: "Apache License 2.0"
  - id: S2
    title: "Protect the Docker daemon socket (source)"
    publisher: Docker, Inc.
    url: https://raw.githubusercontent.com/docker/docs/main/content/manuals/engine/security/protect-access.md
    accessed: 2026-11-24
    license: "Apache License 2.0"
---
# 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

- [docker-rootless](https://iinventedlight.com/library/notes/docker-rootless/)
- [docker-trust](https://iinventedlight.com/library/notes/docker-trust/)
- [docker-seccomp](https://iinventedlight.com/library/notes/docker-seccomp/)

## 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.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
