These container images provide the runtime environments for executing content deployed to Connect in Kubernetes. Each image bundles a specific combination of R, Python, and Quarto so that content runs in an environment matching its language requirements.
Tip
Deploying on Kubernetes? Try the Posit Connect Helm chart!
| 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-connect/issues |
| Source | https://github.com/posit-dev/images-connect |
| License | MIT |
| Product documentation | Posit Connect documentation, Content execution environment documentation |
For Kubernetes deployments, Connect uses three images together. See the repository README for Helm configuration.
| Image | Description | Docker Hub | GitHub Container Registry |
|---|---|---|---|
connect | The Posit Connect server | posit/connect | posit-dev/connect |
connect-content-init | Init container for Kubernetes deployments | posit/connect-content-init | posit-dev/connect-content-init |
Do not run these images directly. The Connect Job Launcher schedules them as content execution pods when published content runs on Kubernetes. Each pod executes Shiny applications, Plumber APIs, Quarto documents, Jupyter notebooks, and other Connect content using the R and Python versions baked into the image.
Configure these images as execution environments in Connect through any of the following methods:
rstudio/rstudio-connect Helm chart includes a default set of content images defined by executionEnvironments. See the repository README for configuration details.Two variants are available:
| Variant | Description |
|---|---|
Base (base) | Open-source R and Python with system dependencies for popular R packages. |
Pro (pro) | Builds on the Base variant and adds Posit Professional Drivers and the odbc R package for ODBC database connectivity. |
Each tagged image bundles a fixed set of dependencies. Both variants ship one R version, one Python version, and one Quarto version, for a collection of minor versions at their latest patch version available at build time. The Containerfiles in this repository under connect-content/matrix/ document the exact versions in any tag.
See content extending examples for how to build on these images, including pre-installing R packages, Python packages, and system dependencies.
Posit publishes images to:
docker.io/posit/connect-contentghcr.io/posit-dev/connect-contentUbuntu 24.04 is the default OS.
The tag format is: R{r_version}-python{python_version}-{os}[-pro]
Examples:
R4.5.2-python3.14.3-ubuntu-24.04 — R 4.5.2, Python 3.14.3, Ubuntu 24.04, Base variantR4.4.3-python3.12.12-ubuntu-24.04-pro — R 4.4.3, Python 3.12.12, Ubuntu 24.04, Pro variantR4.3.3-python3.11.14-ubuntu-22.04 — R 4.3.3, Python 3.11.14, Ubuntu 22.04, Base variantPosit publishes Ubuntu 24.04 content images for both linux/amd64 and linux/arm64. Pull the same tag from either platform. Docker selects the matching manifest automatically. Posit publishes Ubuntu 22.04 content images for linux/amd64 only.
Each image includes:
| Component | Path |
|---|---|
| R | /opt/R/{version}/bin/R |
| Python | /opt/python/{version}/bin/python3 |
| Quarto | /opt/quarto/bin/quarto |
The Pro variant also installs Posit Professional Drivers under /opt/rstudio-drivers/ and the odbc R package, with the bundled odbcinst.ini copied to /etc/odbcinst.ini.
These images do not declare a USER. Containers start as root. The Connect Job Launcher manages the runtime user when scheduling content pods, dropping privileges according to the configuration the Connect administrator sets.
Use any tag as a base for a derived image with additional dependencies. For example, a Pro-variant image with Tidyverse pre-installed:
FROM ghcr.io/posit-dev/connect-content:R4.5.2-python3.14.3-ubuntu-24.04-pro
RUN /opt/R/4.5.2/bin/R -e 'install.packages("tidyverse", repos = "https://p3m.dev/cran/__linux__/noble/latest")'
See content extending examples for additional patterns.
These images replace the legacy rstudio/content-base and rstudio/content-pro images. The runtime tools are mostly unchanged. R and Python install at the same versioned paths under /opt, and Connect schedules content into these images the same way. Quarto moved from versioned to flat installation under /opt/quarto/bin/quarto, but remains symlinked to the PATH and is otherwise unchanged. The differences mostly lie in how Posit publishes and tags the image.
Posit published the legacy images as rstudio/content-base and rstudio/content-pro on Docker Hub, and as ghcr.io/rstudio/content-base and ghcr.io/rstudio/content-pro on GHCR. Both shipped linux/amd64 only, tagged like r{r_version}-py{python_version}-bionic or r{r_version}-py{python_version}-jammy. Update your image references to one of the new locations and pick a tag that pins to your desired R, Python, OS, and variant. See Image tags and Architectures.
The legacy images split content runtimes into two separate repositories: rstudio/content-base for the open-source build and rstudio/content-pro for the build with Posit Professional Drivers. The replacement images publish both as variants of a single connect-content repository: the Base variant matches content-base and the Pro (-pro) variant matches content-pro. See Image variants.
Legacy tags followed r{r_version}-py{python_version}-{codename}, for example r4.1.0-py3.9.2-jammy. Replacement tags follow R{r_version}-python{python_version}-{os}[-pro], for example R4.5.2-python3.14.3-ubuntu-24.04. Both forms encode the same information.
/optReview these images before using them in production. Organizations with specific Common Vulnerabilities and Exposures (CVE) or vulnerability requirements should rebuild these images to meet their security standards.
Posit rebuilds published images weekly for Posit product editions under active support to pull in operating system patches.
These images contain third-party software (R, Python, Quarto, system libraries, and their transitive dependencies) under various licenses. You are responsible for using these images and any of their dependent layers in compliance with the licenses of the contained software.
Content type
Image
Digest
sha256:3f45084ac…
Size
1.1 GB
Last updated
1 day ago
docker pull posit/connect-content