Interview Prep/Docker/Runtime Stack, OCI & Registries

How do you secure the Docker daemon's remote API?

AdvancedConceptRuntime Stack, OCI & Registries
Answer

Never expose tcp://0.0.0.0:2375 unauthenticated; it is root on the host. Use tcp://:2376 with mutual TLS (--tlsverify --tlscacert --tlscert --tlskey) or, simpler, SSH (ssh://user@host) with docker context. Restrict with firewall rules.

All Docker questions Roadmap: Docker & containers

More on Runtime Stack, OCI & Registries