Sandboxes: add a Docker Engine setup example for custom v3 workloads
维护者通常 1 天内回复
@dvdksn 已经在做这个了。
开始于 2026年10月20日。
评估
这个 Issue 还没有评估数据。
描述
Is this a docs issue?
- My issue is about the documentation content or website
Type of issue
I can't find what I'm looking for
Description
The v3 custom-workload tutorial shows how to build an agent environment from a Linux base image, but does not explain how to enable Docker Engine inside that workload so the agent can build images and run containers or Compose applications.
The example uses UBI and installs the agent and supporting packages without showing Docker installation or daemon startup. The base-image guide mentions Docker CLI tooling, while the capability reference describes privileged@1 support. These pieces do not give a reader a complete answer to whether installing Docker is sufficient, what starts the daemon, what privileges and storage are required, or how to verify the result.
The distinction matters: microVM isolation does not by itself tell a kit author which tools and services their custom workload image includes. Likewise, the presence of the Docker CLI does not demonstrate that an Engine is available and running.
Location
- https://docs.docker.com/ai/sandboxes/customize/author/build-an-agent/
- https://docs.docker.com/ai/sandboxes/customize/author/base-images/
- https://docs.docker.com/ai/sandboxes/customize/author/capabilities/
Suggestion
Add a tested end-to-end example for a Docker-enabled v3 workload, linked from the custom-workload tutorial and base-image guide. Cover:
- A suitable base image, or the packages needed when using a custom Linux image, distinguishing Docker CLI, Engine, Buildx, and Compose as appropriate.
- The required v3 capability declarations, privileges, daemon startup mechanism, and how the agent user connects to the Engine.
- Storage and persistence for Docker images, containers, and volumes, including what happens when the sandbox is restarted or removed.
- A minimal Dockerfile and kit descriptor with the exact command used to launch the workload.
- Verification with
docker versionordocker infoand a small build/run example, plus troubleshooting for an unavailable daemon. - The minimum supported
sbxversion and local/cloud restrictions. The capability table currently lists localprivileged@1support from v0.48.0 and no cloud support; make the example's scope explicit and describe a cloud alternative only if one is supported.
Prefer a complete, maintained example over an assumption that every custom workload automatically includes a running Docker Engine. Link the general architecture explanation to the concrete setup requirements.
- 主要语言
- Markdown
- 星标
- 4.7k
- 派生
- 8.6k
- 平均合并
- 2 天 8 小时
- 30 天内合并 PR
- 188
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
docker/docs 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 91/100
维护者通常 1 天内回复
-
status/triage
难度 1/5 1 小时以内 新手友好度 68/100
维护者通常 1 天内回复
-
[docs-scanner] Confusing temporal framing in company creation steps可能已有人在做 @sahithib20 于 2 天前认领。 未关闭
难度 1/5 1 小时以内 新手友好度 89/100
维护者通常 1 天内回复
-
status/triage
难度 2/5 1-3 小时 新手友好度 73/100
维护者通常 1 天内回复
-
missing a part未关闭status/triage
难度 1/5 1 小时以内 新手友好度 82/100
维护者通常 1 天内回复