This container image is an init container for Workbench. It stages the Workbench session runtime components under /opt/session-components for use by another container. Use this image to share components with a session container through a Kubernetes volume, or to copy them into a custom session image at build time.
Tip
Deploying on Kubernetes? Try the Posit Workbench Helm chart, which can configure Workbench to launch sessions with this image.
| Maintained by | the Posit Docker team |
| Where to get help | GitHub Issues, Images Discussion Board, the Posit Community Forum, Posit Support |
| Where to file issues | https://github.com/posit-dev/images-workbench/issues |
| Source | https://github.com/posit-dev/images-workbench |
| License | MIT |
| Product documentation | Posit Workbench documentation, Job Launcher overview, Kubernetes integration guide |
For Kubernetes deployments, Workbench uses these images together. See the repository README for Helm configuration.
| Image | Description | Docker Hub | GHCR |
|---|---|---|---|
workbench | The Posit Workbench server | posit/workbench | posit-dev/workbench |
workbench-session | Session images for Kubernetes (R and Python version matrix) | posit/workbench-session | posit-dev/workbench-session |
workbench-positron-init | Init container providing Positron Pro components | posit/workbench-positron-init | posit-dev/workbench-positron-init |
The Workbench Helm chart by default configures Workbench to use a workbench-session-init image to bootstrap a workbench-session image. Configure the images as shown below.
Note
The `workbench-session-init` version should always match the `workbench` server version. See [Version compatibility](#version-compatibility).
session:
image:
repository: "ghcr.io/posit-dev/workbench-session"
tag: "latest"
components:
sessionInit:
image:
repository: "ghcr.io/posit-dev/workbench-session-init"
See the repository README for a full chart example.
Posit publishes images to:
docker.io/posit/workbench-session-initghcr.io/posit-dev/workbench-session-initUbuntu 24.04 is the only OS.
Tag formats where YYYY.MM.P is any supported Workbench version:
YYYY.MM.P - Default OSYYYY.MM.P-ubuntu-24.04 - Explicit OSlatest - Latest version, default OSPosit publishes workbench-session-init images for linux/amd64 only. linux/arm64 builds remain in developer preview until Workbench supports ARM in production.
The init container does not consume any environment variables at runtime.
The init container stages the Workbench session components at /opt/session-components in the image. Mount a shared volume at the same path to expose them to a session container.
| Mount point | Description |
|---|---|
/opt/session-components | Workbench session runtime components |
The session container mounts the same volume at /opt/session-components to consume the runtime components at the path Workbench expects.
The container starts as root so the session container can read the session components from the shared volume.
You can pull the session components into a custom session image at build time using a multi-stage build:
FROM ghcr.io/posit-dev/workbench-session-init:2026.09.0 AS session-init
FROM your-custom-base
COPY --from=session-init /opt/session-components /opt/session-components
The resulting image bundles the session components directly, so it can run Workbench sessions without an init container at runtime.
See the session-init extending example for a complete example of this pattern.
This image replaces the legacy rstudio/workbench-session-init image. The runtime contents are unchanged. The image still ships the Workbench session components at /opt/session-components for a session container to consume. The differences are in how the image is published.
Posit published the legacy image as rstudio/workbench-session-init on Docker Hub and ghcr.io/rstudio/workbench-session-init on GHCR, tagged by OS (jammy, ubuntu2204, jammy-<version>, ubuntu2204-<version>) for linux/amd64 only. Update your image reference to one of the new locations and pick a tag that pins to your desired Workbench version. See Image tags and Architectures.
The legacy image shipped Ubuntu 22.04 only. This image ships Ubuntu 24.04 only. See Image tags.
/opt/session-components)Review these images before using them in production. Organizations with specific Common Vulnerabilities and Exposures (CVE) or vulnerability requirements can rebuild these images to meet their security standards.
Posit rebuilds these images weekly for Posit product editions under active support, pulling in operating system patches.
The workbench-session-init image version must match the Workbench server version. Mismatched versions can cause session startup failures or unexpected behavior.
Content type
Image
Digest
sha256:523123b3a…
Size
2 GB
Last updated
1 day ago
docker pull posit/workbench-session-init