mirror of
https://github.com/docker/docs.git
synced 2026-11-04 10:01:00 +00:00
Update shell base image references for custom sandbox workloads (#26474)
Update the base-image reference, v2 kit guidance, and Mistral Vibe example to use the published shell base images. Distinguish these images from the shell kit so users choose the appropriate base for custom workloads. Validation: Scoped Markdown and Vale checks passed. Verified image publication and the Docker-enabled image’s user and tools; the full Vibe sandbox workflow was not rerun.
This commit is contained in:
1 parent
2573bc6ee1
commit
8da69ed6c2
3 files changed
+21
-5
No files matched your search
@@ -94,11 +94,11 @@ mistral-vibe/
|
|||||||
└── vibe.dockerfile
|
└── vibe.dockerfile
|
||||||
```
|
```
|
||||||
|
|
||||||
Create `mistral-vibe/vibe.dockerfile`. The `shell-docker` template supplies
|
Create `mistral-vibe/vibe.dockerfile`. The `shell-docker-image` base image supplies
|
||||||
the agent account, Python, `uv`, and the sandbox's Docker tooling:
|
the agent account, Python, `uv`, and the sandbox's Docker tooling:
|
||||||
|
|
||||||
```dockerfile {title="mistral-vibe/vibe.dockerfile"}
|
```dockerfile {title="mistral-vibe/vibe.dockerfile"}
|
||||||
FROM docker/sandbox-templates:shell-docker
|
FROM docker.io/sbx/shell-docker-image:latest
|
||||||
|
|
||||||
ARG VIBE_VERSION
|
ARG VIBE_VERSION
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,8 @@ To save and reuse an environment you've configured interactively, see
|
|||||||
|
|
||||||
## Docker-provided images
|
## Docker-provided images
|
||||||
|
|
||||||
Docker's sandbox templates are published as
|
To customize an existing agent, start from one of Docker's sandbox templates,
|
||||||
|
published as
|
||||||
`docker/sandbox-templates:<variant>`. They are based on Ubuntu and run as a
|
`docker/sandbox-templates:<variant>`. They are based on Ubuntu and run as a
|
||||||
non-root `agent` user with sudo access. Most variants include Git, Docker
|
non-root `agent` user with sudo access. Most variants include Git, Docker
|
||||||
CLI, and common development tools like Node.js, Python, Go, and Java. Full
|
CLI, and common development tools like Node.js, Python, Go, and Java. Full
|
||||||
@@ -41,7 +42,22 @@ templates also include a C/C++ compiler toolchain for building native code.
|
|||||||
| `gemini` | [Gemini CLI](https://github.com/google-gemini/gemini-cli) |
|
| `gemini` | [Gemini CLI](https://github.com/google-gemini/gemini-cli) |
|
||||||
| `kiro` | [Kiro](https://kiro.dev) |
|
| `kiro` | [Kiro](https://kiro.dev) |
|
||||||
| `opencode` | [OpenCode](https://opencode.ai) |
|
| `opencode` | [OpenCode](https://opencode.ai) |
|
||||||
| `shell` | No agent pre-installed. Use for manual agent setup. |
|
|
||||||
|
Docker rebuilds the `claude-code`, `claude-code-minimal`, `gemini`,
|
||||||
|
`claude-code-docker`, and `gemini-docker` variants. The other variants in the
|
||||||
|
table remain available as previously published images.
|
||||||
|
|
||||||
|
### Build a custom agent on a shell image
|
||||||
|
|
||||||
|
To package an agent that Docker doesn't provide, start from
|
||||||
|
`docker.io/sbx/shell-image:latest`. This base image provides a development
|
||||||
|
environment without a pre-installed agent, so you can add your agent's tooling
|
||||||
|
on top. Use `docker.io/sbx/shell-docker-image:latest` if your workload needs
|
||||||
|
Docker Engine inside the sandbox.
|
||||||
|
|
||||||
|
If you need a different operating system or want to choose every package,
|
||||||
|
[use your own Linux image](#use-your-own-linux-image). You'll need to prepare
|
||||||
|
the tools and user account that Docker Sandboxes expects yourself.
|
||||||
|
|
||||||
## Use an image in a v3 workload
|
## Use an image in a v3 workload
|
||||||
|
|
||||||
|
|||||||
@@ -303,7 +303,7 @@ The agent's container image must provide:
|
|||||||
- HTTP proxy environment variables (`HTTP_PROXY`, `HTTPS_PROXY`, `NO_PROXY`) preserved across sudo.
|
- HTTP proxy environment variables (`HTTP_PROXY`, `HTTPS_PROXY`, `NO_PROXY`) preserved across sudo.
|
||||||
- The agent binary, either baked in or installed with [`setup.install`](#setup).
|
- The agent binary, either baked in or installed with [`setup.install`](#setup).
|
||||||
|
|
||||||
Build on top of `docker/sandbox-templates:shell-docker` to get these base
|
Build on top of `docker.io/sbx/shell-docker-image:latest` to get these base
|
||||||
requirements.
|
requirements.
|
||||||
|
|
||||||
## Agent instructions
|
## Agent instructions
|
||||||
|
|||||||
Reference in new issue
Block a user