Interview Prep/Docker/Security and scanning

Keep Docker daemon API from being exposed insecurely.

IntermediateScenarioSecurity and scanning
Answer

Situation read → -H tcp://0.0.0.0:2375 gives unauthenticated root to the network (cryptominers love it).

What I'd do → Use the Unix socket locally, or SSH (DOCKER_HOST=ssh://user@host), or TLS with client certs on 2376 (--tlsverify). Firewall the port and audit with ss -tlnp | grep dockerd.

Why → Remote API equals remote root.

Interview tip → docker context create makes SSH access ergonomic.

All Docker questions Roadmap: Docker & containers

More on Security and scanning