DevOps & Cloud
Risk: High

Port 2376 β€” Docker REST API (TLS Encrypted)

Port 2376 is the official secure port for Docker daemon API communication using mutual TLS authentication.

PORT NUMBER

2376

PROTOCOL

TCP

DEFAULT PROCESS

dockerd

FIREWALL TARGET

2376/tcp

Instant Terminal Fixes for Port 2376

macOS & Linux Terminal
1. Check who is listening on port 2376:
sudo ss -tulpn | grep 2376
2. Kill process occupying port 2376 (EADDRINUSE fix):
sudo systemctl restart docker
3. UFW Firewall Allow rule:
sudo ufw allow 2376/tcp
Windows PowerShell (Admin)
1. Check listening port:
Get-NetTCPConnection -LocalPort 2376
2. Force kill process on port 2376:
Restart-Service docker
3. Docker Port Forwarding Mapping:
dockerd --tlsverify --tlscacert=ca.pem --tlscert=server-cert.pem --tlskey=server-key.pem -H tcp://0.0.0.0:2376

Common Error Encountered

tls: bad certificate error communicating with Docker daemon on port 2376

Security Advisory & Hardening

Ensure client certificates are signed by a trusted CA and verified before authorizing any Docker container commands.

Frequently Asked Questions

Port 2376 Questions & Answers

Common questions regarding default services, kill commands, and firewall configurations.

Port 2376 is commonly used for Docker REST API (TLS Encrypted). Port 2376 is the official secure port for Docker daemon API communication using mutual TLS authentication.