Share feedback
Answers are generated based on the documentation.

docker sandbox ls

DescriptionList VMs
Usagedocker sandbox ls [OPTIONS]
Aliases
docker sandbox list

Description

List all VMs managed by sandboxd with their sandboxes

Options

OptionDefaultDescription
--jsonOutput in JSON format
--no-truncDon't truncate output
-q, --quietOnly display VM names

Examples

List all VMs

$ docker sandbox ls
VM ID         NAME       STATUS    WORKSPACE                    SOCKET PATH                           SANDBOXES    AGENTS
abc123def     claude-vm  running   /home/user/my-project        /Users/.../docker-1764682554072.sock  2           claude
def456ghi     gemini-vm  stopped   /home/user/ml-projects

Show only VM names (--quiet)

--quiet

Output only VM names:

$ docker sandbox ls --quiet
claude-vm
gemini-vm

Don't truncate output (--no-trunc)

--no-trunc

By default, long VM IDs, workspace paths, and socket paths are truncated for readability. Use --no-trunc to display the full values:

$ docker sandbox ls
VM ID         NAME       STATUS    WORKSPACE                   SOCKET PATH                           SANDBOXES    AGENTS
abc123def     claude-vm  running   /home/user/.../my-project   ...sandboxes/vm/claude-vm/docker.sock  2           claude

$ docker sandbox ls --no-trunc
VM ID                     NAME       STATUS    WORKSPACE                                          SOCKET PATH                                                              SANDBOXES    AGENTS
abc123def456ghi789jkl     claude-vm  running   /home/user/very/long/path/to/my-project           /Users/user/.docker/sandboxes/vm/claude-vm/docker-1764682554072.sock    2           claude

JSON output (--json)

--json

Output detailed VM information in JSON format:

$ docker sandbox ls --json
{
  "vms": [
    {
      "name": "claude-vm",
      "agent": "claude",
      "status": "running",
      "socket_path": "/Users/user/.docker/sandboxes/vm/claude-vm/docker-1234567890.sock",
      "sandbox_count": 2,
      "workspaces": [
        "/home/user/my-project",
        "/home/user/another-project"
      ]
    },
    {
      "name": "gemini-vm",
      "agent": "gemini",
      "status": "stopped",
      "sandbox_count": 0
    }
  ]
}