Docker & Sandbox

Docker Isolation: Namespace Restrictions & Read-Only Mounts

Decrypting tools/environments/docker.py Namespace security policies & Capabilities filtering
Docker Isolated Sandbox
📊 Fig 9-2-1: Standard I/O redirection, host directory mount & Docker container sandbox boundary diagram

🔒 1. docker.py Read-Only Volume & Namespace Security

In tools/environments/docker.py, to prevent malicious code from compromising the host, the system implements extremely stringent security filtering. The host Workspace is mounted as read-only (ro) into the container, and Linux PID, IPC, and NET namespaces isolate the container from discovering the host's LAN topology.

Terminal redirection
📊 Fig 9-2-2: Host sandbox controller and isolated environment (PTY master-slave devices) bidirectional redirection pipeline diagram

🛡️ 2. Linux Capabilities Lockdown

The system strips almost all root system call capabilities from the container at Docker startup (e.g., --cap-drop=ALL), eliminating sandbox escape and unauthorized network device control risks.