Retain Docker Agent session database on the host across sandbox removal
955
Retain Docker Agent session database on the host across sandbox removal
| Name | Required | Default | Description |
|---|---|---|---|
version | Required | — | — |
| Type | Required | Description | |
|---|---|---|---|
com.docker.sandbox/host-mount@1 | Required | — | |
com.docker.sandbox/lifecycle@1 | Required | — | |
docker-agentsbx run <agent> --kit sbx/docker-agent-sessions:latestRun the following command to install sbx on your machine.
brew install docker/tap/sbxwinget install Docker.sbxThis Docker Hardened Images mixin retains Docker Agent conversation state on the host across sandbox removal. It composes with either the Docker Agent workload or its agent mixin.
sbx run sbx/docker-agent:latest --kit sbx/docker-agent-sessions:latest /path/to/workspace
Use a versioned tag from the Tags tab to pin this kit release. The sbx/docker-agent-sessions tags mirror the
corresponding dhi/docker-agent-sessions tags after a successful build.
The runtime mounts host storage at /home/agent/docker-agent-history. Each sandbox uses a subdirectory named after that
sandbox, so simultaneous sandboxes do not share one writable session store. Reuse the sandbox name to reconnect to its
retained state.
The kit retains the declared session data, not account credentials or the agent's complete configuration directory. Conversation history can contain workspace content and tool output. Authentication stays with the composed agent kit.
The install hook refuses to replace existing nonempty session state or unexpected symlinks. Move existing state into the host-backed directory before adding this mixin to an existing environment.
sbx/docker-agent provides the complete agent workload.sbx/docker-agent-mixin provides the agent overlay for a
compatible workload.For runtime setup, see the Docker Sandboxes documentation. For provenance, SBOM, VEX, and image verification, see the Docker Hardened Images documentation.
Docker and the Docker logo are trademarks or registered trademarks of Docker, Inc. Product names and logos do not imply sponsorship or endorsement.