How do you handle the Docker group on shared servers?
BeginnerScenarioSecurity and scanning
Answer
Situation read → Membership of docker group equals root.
What I'd do → Keep it to a minimal set of admins, use rootless Docker or Podman for developers, or sudo with logging. Audit with getent group docker and enable auditd rules on /usr/bin/dockerd and the socket.
Why → The group grants full control of the daemon.
Interview tip → Say "docker group is passwordless root."
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