Join our Newsletter — 33% off our NHI Course
Home› FAQ› Cyber Security› Is it safe to expose Port 2375 (Docker…
Cyber Security

Is it safe to expose Port 2375 (Docker API) to the internet?

← Back to all FAQ
By NHI Mgmt Group Editorial Team Updated October 18, 2026 Domain: Cyber Security

No, exposing Port 2375 (Docker API) to the internet is unsafe because it can allow remote control of containers and, in some configurations, host compromise. Treat it as sensitive administration traffic. Keep it off the public internet, require strong transport security and authentication if remote access is necessary, and monitor for unauthorised API requests.

What makes port 2375 dangerous when it is publicly reachable?

Docker’s remote API is not just a status endpoint, it is an administrative control plane. If port 2375 is exposed without strong transport protection and authentication, any reachable party may be able to create, stop, inspect, or reconfigure containers, which is why unauthenticated exposure is treated as a high-severity trust boundary failure.

That risk is amplified because the API often sits close to the host layer, not just a single application. A mistake in container permissions, mounts, or runtime configuration can turn API access into broader system exposure, so the question is less “can someone call the API” and more “what can that API caller do to the host and adjacent services?”

Why internet exposure changes the threat model

On an internal network, a Docker API still deserves tight controls, but an internet-facing listener changes the problem from administrative convenience to active exploitation. Public exposure invites automated scanning, opportunistic abuse, and follow-on actions such as container breakout attempts, credential harvesting from mounted volumes, and cryptomining or staging activity on the host.

For a practical sense of how quickly exposed Docker endpoints get abused, the Network Ports and Protocols Security Guide treats port 2375 as a risky service exposure, and NHIMG’s TeamTNT worm 2020 shows why exposed docker api are attractive to attackers who want credential theft and broad host access.

Remote API exposure also broadens the blast radius of any single misconfiguration. If the API can launch privileged containers, mount host paths, or reach cloud credentials stored on the machine, then a simple network exposure becomes an infrastructure compromise path, not just an application issue.

How to harden access without leaving the API open

The safest answer is to keep Docker’s API off the public internet and use local sockets, VPNs, or tightly controlled management networks instead. If remote access is unavoidable, use mutual TLS, strong client authentication, restrictive network allowlisting, and logging that makes each administrative action attributable.

That approach aligns with the broader container security model described in NIST SP 800-190 Container Security, which emphasizes protecting the container runtime, the host, and the management plane together. It also fits the API security principle that administrative functions should be authenticated and access-controlled rather than left open for convenience, as reinforced by the OWASP API Security Top 10.

When you need to expose management capability to another system, prefer a narrowly scoped intermediary rather than direct public API exposure. The safest pattern is to reduce who can reach the control plane, reduce what that caller can do, and make every action observable in logs.

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-53 Rev 5, NIST SP 800-190 and CIS Controls v8 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP API Security Top 10API2 — Broken AuthenticationDocker API exposure hinges on authenticated access to remote management functions.
Recommendation — Require strong authentication before any remote Docker API request is accepted.
NIST SP 800-53 Rev 5IA-2 — Identification and Authentication (Organizational Users)Remote admin access to the Docker daemon needs verified user authentication.
AC-3 — Access EnforcementThe API must enforce who can perform container management actions.
Recommendation — Enforce authenticated administrative access before permitting Docker control actions. Restrict Docker API actions to explicitly authorised management roles.
NIST SP 800-190Container runtime and management plane protectionThe subject is a container runtime management plane exposed to network risk.
Recommendation — Protect the container runtime and management plane as a high-value attack surface.
CIS Controls v8CIS-12 — Network Infrastructure ManagementPublic exposure of a management port is a network control problem.
Recommendation — Segregate and restrict management network paths so the Docker API is not internet-facing.

Practitioner Guidance

What to verify: Confirm whether the daemon is listening on TCP 2375 at all, whether TLS is enforced on any remote listener, and whether firewall rules prevent internet reachability. If a host is intended to be remotely managed, verify that the management path is private, authenticated, and separately monitored from application traffic.

Decision rule: If the port is reachable from the public internet, treat it as an incident-prone exposure and remove it or place it behind a secure management plane first. Do not wait to “see whether anyone notices” because scanning and abuse are usually automated.

Common mistake: Teams often secure the containers while leaving the daemon endpoint itself exposed. That reverses the trust order, because the control plane can usually out-rank the workload in what it can change or destroy.

Practitioner takeaway: Port 2375 should be assumed unsafe unless it is fully shielded by private networking, strong authentication, and auditable transport security. If you cannot enforce all three, the correct fix is not to expose it.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on October 18, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org