What is the Docker socket (/var/run/docker.sock) and what security risk does mounting it in a container pose?

Docker Fundamentals Hard

Docker Fundamentals — Hard

What is the Docker socket (/var/run/docker.sock) and what security risk does mounting it in a container pose?

Key points

  • Mounting the Docker socket in a container gives full control over the Docker daemon
  • Compromised containers can create privileged containers or escape isolation
  • This poses a critical security risk in Docker environments

Ready to go further?

Related questions