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.
More on Security and scanning
A scan reports 300 CVEs in your base image. How do you triage?IntermediateAdd vulnerability scanning to CI so critical findings block the merge.BeginnerWhy is mounting `/var/run/docker.sock` into a container dangerous?IntermediateA developer asks for `--privileged`. What do you do?IntermediateHarden a container run command for a stateless web API.IntermediateA pentester got root inside a container. How bad is it?Advanced