ExAgent. Sandbox. Docker
(ExAgent v3.0.0)
View Source
Reference Sandbox backend for a trusted local Linux Docker Engine.
Stability — Candidate.
Resolves a host-selected, locally installed Python 3 image to its image ID
on startup. The image must provide /usr/local/bin/python3 and declare no
volumes. The backend uses an empty Docker CLI configuration and a Unix
socket, with image pulls disabled. Code runs as UID/GID 65534.
Code may write an optional PNG to /tmp/capture.png. The guest runner
supervises wall time and merged stdout/stderr. Docker supplies CPU, memory,
PID, mount and network isolation. Receipts and captures are volatile.
Summary
Functions
Start the backend with a locally installed :image. Set :socket to an
absolute local Unix socket path (default /var/run/docker.sock). Accepts the
retention and concurrency options of ExAgent.Sandbox.Memory.start_link/1.
Returns {:error, :docker_unavailable} if the daemon, image, host executables
or needed resource controllers cannot be verified.
Functions
@spec start_link(keyword()) :: GenServer.on_start()
Start the backend with a locally installed :image. Set :socket to an
absolute local Unix socket path (default /var/run/docker.sock). Accepts the
retention and concurrency options of ExAgent.Sandbox.Memory.start_link/1.
Returns {:error, :docker_unavailable} if the daemon, image, host executables
or needed resource controllers cannot be verified.