|
| 1 | +command: docker sandbox inspect |
| 2 | +short: Display detailed information on one or more sandboxes |
| 3 | +long: |- |
| 4 | + Display detailed information on one or more sandboxes. |
| 5 | +
|
| 6 | + This command retrieves and displays detailed information about the specified |
| 7 | + sandboxes using the Docker API. Each sandbox is identified by its unique ID or name. |
| 8 | +usage: docker sandbox inspect [OPTIONS] SANDBOX [SANDBOX...] |
| 9 | +pname: docker sandbox |
| 10 | +plink: docker_sandbox.yaml |
| 11 | +inherited_options: |
| 12 | + - option: debug |
| 13 | + shorthand: D |
| 14 | + value_type: bool |
| 15 | + default_value: "false" |
| 16 | + description: Enable debug logging |
| 17 | + deprecated: false |
| 18 | + hidden: false |
| 19 | + experimental: false |
| 20 | + experimentalcli: false |
| 21 | + kubernetes: false |
| 22 | + swarm: false |
| 23 | +examples: |- |
| 24 | + ### Inspect a sandbox |
| 25 | +
|
| 26 | + ```console |
| 27 | + $ docker sandbox inspect abc123def |
| 28 | + [ |
| 29 | + { |
| 30 | + "id": "abc123def69b16c5c0dab4cf699e26f8d01e1ace3aeee06254e0999492e11647", |
| 31 | + "name": "claude-sandbox-2025-11-04-170333", |
| 32 | + "created_at": "2025-11-04T16:03:33.910642347Z", |
| 33 | + "status": "running", |
| 34 | + "template": "docker/sandbox-templates:claude-code", |
| 35 | + "labels": { |
| 36 | + "com.docker.sandbox.agent": "claude", |
| 37 | + "com.docker.sandbox.workingDirectory": "/Users/moby/code/docker/sandboxes", |
| 38 | + "com.docker.sandbox.workingDirectoryInode": "3041007", |
| 39 | + "com.docker.sandboxes": "templates", |
| 40 | + "com.docker.sandboxes.base": "ubuntu:questing", |
| 41 | + "com.docker.sandboxes.flavor": "claude-code", |
| 42 | + "com.docker.sdk": "true", |
| 43 | + "com.docker.sdk.client": "0.1.0-alpha011", |
| 44 | + "com.docker.sdk.container": "0.1.0-alpha012", |
| 45 | + "com.docker.sdk.lang": "go", |
| 46 | + "docker/sandbox": "true", |
| 47 | + "org.opencontainers.image.ref.name": "ubuntu", |
| 48 | + "org.opencontainers.image.version": "25.10" |
| 49 | + } |
| 50 | + } |
| 51 | + ] |
| 52 | + ``` |
| 53 | +deprecated: false |
| 54 | +hidden: false |
| 55 | +experimental: false |
| 56 | +experimentalcli: false |
| 57 | +kubernetes: false |
| 58 | +swarm: false |
| 59 | + |
0 commit comments