Share feedback
Answers are generated based on the documentation.

docker sandbox ls

内容説明List VMs
利用方法docker sandbox ls [OPTIONS]
エイリアス
docker sandbox list

内容説明

警告

The Docker Desktop-integrated docker sandbox commands are deprecated and replaced by the standalone sbx CLI. This deprecation applies only to the Docker Desktop integration, not to Docker Sandboxes.

List all VMs managed by sandboxd with their sandboxes

オプション

オプションデフォルト内容説明
--jsonOutput in JSON format
-q, --quietOnly display VM names

利用例

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

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
    }
  ]
}