Port 2376 is the Docker daemon's TLS-protected REST API port. It requires mutual TLS authentication – both the server and client present certificates signed by a shared CA. This is the secure alternative to port 2375 for remote Docker access. Docker Machine and Docker Context use port 2376 when connecting to remote hosts.
Port Number
2376
Protocol
TCP
Service
Docker Remote API over TLS
Range
IANA Registered (1024–49151)
Test TLS Docker connection with client cert
docker --tlsverify -H tcp://host:2376 versionTest TLS handshake and certificate chain
openssl s_client -connect host:2376 -cert cert.pem -key key.pem -CAfile ca.pemREST API test via curl with mTLS
curl --cert cert.pem --key key.pem --cacert ca.pem https://host:2376/versiondocker --tlsverify --tlscacert=ca.pem --tlscert=cert.pem --tlskey=key.pem -H tcp://server:2376 ps
docker context create remote --docker host=tcp://server:2376,ca=ca.pem,cert=cert.pem,key=key.pemPort 2376 was defined alongside 2375 when Docker added remote API support in 2014. Docker Machine (now deprecated) automated TLS certificate generation for remote hosts. Docker 19.03 (2019) added SSH transport as a simpler alternative to managing TLS certificates.
Port 2376 vs SSH for remote Docker?
SSH (docker -H ssh://user@host) is simpler – uses existing SSH keys, no CA infrastructure, no certificate rotation. Port 2376 (TLS) is better for automated systems (CI/CD) where SSH agent forwarding is impractical. Both provide equivalent security. SSH is the modern recommendation for human operators.