Join our Newsletter — 33% off our NHI Course

Docker Remote API (Ports 2375/2376)

Docker Remote API (Ports 2375/2376) is the network interface used to manage a Docker daemon remotely. If exposed without strong protection, it can allow full control of containers and the host, so defenders should avoid unauthenticated access, restrict network reachability, and require strong transport security for remote administration.

What the Docker Remote API Does

The Docker Remote API is the control surface for a Docker daemon. It is how remote operators, automation, and tooling issue container-management commands, so the security posture of the API directly determines who can create, stop, inspect, or remove containers.

Because the API sits at the daemon boundary, it is not just a convenience interface. It is an administrative trust point, and exposure of that trust point can turn a network service into full host and workload control if protections are weak.

Why Ports 2375 and 2376 Matter

Port 2375 is commonly associated with unencrypted Docker API access, while 2376 is commonly used for TLS-protected remote access. The port number alone does not make a deployment safe or unsafe, but it signals whether the daemon is being reached over a transport that should be treated as privileged administration traffic.

In practice, the real question is whether the API is reachable beyond the intended trust boundary. If a Docker daemon listens where untrusted systems can connect, the daemon effectively becomes a remotely reachable host management plane, and the blast radius includes every container and often the underlying operating system.

That is why container hardening guidance treats the Docker socket, daemon exposure, and remote administration paths as sensitive parts of the runtime. Container Security Guide covers the surrounding hardening patterns that should shape how the API is deployed and defended.

How Organisations Assess Exposure

Exposure review starts with asset inventory: which hosts run Docker, which daemons accept remote connections, and which ports are reachable from internal or external networks. Teams then confirm whether the service is bound only where intended, whether firewall rules or security groups constrain reachability, and whether management access is segmented from general application traffic.

Vendor documentation and platform hardening guidance should be checked alongside that inventory, because the acceptable configuration depends on how Docker is installed and operated. Teams should also verify whether the deployment uses encrypted transport and mutual authentication where remote management is required, rather than relying on network location as the only control.

When the main concern is simply whether a host exposes a risky management port, network-level discovery matters too. Network Ports and Protocols Security Guide is useful for understanding why an exposed management port changes the trust model immediately.

External references are equally important here. NIST SP 800-190 Container Security is a good baseline for assessing daemon, runtime, registry, and orchestration exposure.

How Teams Reduce Risk and Confirm Remediation

The safest default is to avoid unauthenticated remote access entirely. If remote management is necessary, organisations should require strong transport protection, restrict access to tightly controlled source networks, and keep the management plane separate from application traffic and user-facing services.

Defenders should also treat the API as an administrative endpoint that deserves continuous review. That means confirming that any remote access path is intentional, that transport protection is active, and that configuration drift has not re-opened an old management interface after a change window or rebuild.

Where remote exposure has existed, remediation is not complete until the host is checked for misuse. Historical abuse patterns show that attackers often use exposed docker api to deploy malicious containers, harvest credentials, or pivot into the host. TeamTNT worm 2020 is a clear example of how exposed Docker management surfaces can become a credential-theft and cryptomining foothold.

Detection and Identity Impact After Exposure

Monitoring should look for remote daemon access from unusual networks, unexpected container creation or deletion, privilege changes, and signs that a container was used as a staging point for follow-on activity. If the API was exposed, review logs and host telemetry for commands that indicate enumeration, secret access, or persistence attempts.

Identity impact can be material even though this is a container-management issue. A compromised Docker daemon can expose API keys, cloud credentials, SSH keys, certificates, and service tokens stored in containers, mounted volumes, or build artifacts, so post-incident review should include rotation of any secrets that may have been reachable from the host or workloads.

That is one reason public examples of exposed container infrastructure often become secret-leak incidents rather than narrow infrastructure incidents. Massive Docker Hub Secrets Leak and the related container-image study show how container environments can quietly carry authentication material that becomes valuable once a management plane is abused.

For broader API security context, OWASP API Security Top 10 helps frame the authorization and authentication failures that make exposed management APIs dangerous.

Risk and Threat Considerations

Exposed Docker Remote API endpoints are attractive because they collapse a long attack path into a single trusted interface. If an attacker can reach the daemon and the endpoint is weakly protected, they may be able to launch containers, mount host filesystems, capture secrets, or use the host as a persistence platform.

Failure mechanism: The daemon accepts management commands across a reachable network path without enough authentication, transport protection, or segmentation, so the attacker inherits administrative capability instead of needing a separate privilege escalation chain.

Impact: The result can be container takeover, host compromise, credential theft, cryptomining, lateral movement, and exposure of any data or secrets accessible from the daemon or its workloads.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP API Security Top 10 addresses the attack and risk surface, while NIST SP 800-190, CIS Controls v8 and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
NIST SP 800-190 Application Container Security Guide Addresses container runtime, daemon, registry, and host exposure that the Docker Remote API directly creates.
Recommendation — Harden Docker daemon exposure and verify that remote management is only enabled through approved secure channels.
OWASP API Security Top 10 API2 — Broken Authentication The remote API becomes dangerous when management access is weakly authenticated or effectively unauthenticated.
API5 — Broken Function Level Authorization Remote daemon commands are privileged functions that must be authorization-checked before execution.
Recommendation — Require strong authentication for every remote Docker management request and block anonymous access. Enforce strict authorization for Docker administration functions so only approved operators and automation can invoke them.
CIS Controls v8 CIS-4 — Secure Configuration of Enterprise Assets and Software Exposed Docker daemon ports are a secure-configuration failure that CIS Controls addresses directly.
Recommendation — Remove unnecessary Docker exposure and enforce hardened daemon settings on every host.
NIST SP 800-53 Rev 5 IA-2 — Identification and Authentication (Organizational Users) Remote Docker administration requires authenticated operators before privileged commands are accepted.
Recommendation — Authenticate every administrative session that can reach the Docker daemon.