Sign inSign up

rstudio/r-base

By rstudio

•Updated about 16 hours ago

Docker Images for R

Image
36

500K+

rstudio/r-base repository overview

⁠Posit R Docker Images

Note

These images have moved to `posit/r-base` on Docker Hub. The images at `rstudio/r-base` will continue to be updated for now, but will be deprecated in the future.

R Docker

Posit creates and distributes an opinionated set of R binaries⁠ for different Linux distributions. These Docker images are built to use those R binaries. The images are intentionally minimal, their primary purpose is to serve as the basis for other images requiring R.

For a quick way to get started with R or RStudio, refer to the Rocker project⁠.

WARNING: These images are considered experimental, and may change. They should not be used for strictly reproducible environments (yet!).

⁠Sample Usage

These images can be used to execute R:

docker run --rm -it posit/r-base:4.6-noble

These images can also be used as the basis for other custom images. To get started, use an image as the base in a Dockerfile:

FROM posit/r-base:4.6-noble
⁠Releases and Tags

The images follow these tag patterns:

PatternExampleDescription
posit/r-base:distroposit/r-base:nobleBase operating system + system libraries required by R.
posit/r-base:x.y.z-distroposit/r-base:4.4.3-nobleR version x.y.z on the specified OS
posit/r-base:x.y-distroposit/r-base:4.4-nobleLatest R version x.y.z on the specified OS, where the patch version z floats over time. For example, if R 4.4.4 is released, posit/r-base:4.4-noble would switch from R 4.4.3 to R 4.4.4.

The following distributions are supported for both x86_64/amd64 and aarch64/arm64:

DistributionFull Name
jammyUbuntu 22.04
nobleUbuntu 24.04
resoluteUbuntu 26.04
trixieDebian 13
rockylinux8Rocky Linux 8
rockylinux9Rocky Linux 9
rockylinux10Rocky Linux 10
opensuse156openSUSE 15.6

The supported R versions are the current release and the four previous minor versions. For example, if R 4.6 is the current version, images are available for R 4.6, 4.5, 4.4, 4.3, and 4.2.

New versions of R are added when they're available on the Posit CDN⁠, though there may be some delay between the release of R and the release of the Docker image.

New operating systems are added on a less frequent basis.

⁠What is R?

R is a language and environment for statistical computing and graphics. For more information:

⁠Resources
⁠Support

Posit does not provide professional support for these images or the R language. The best place to ask questions and provide feedback is the Posit Community⁠.

⁠License

View license information for R⁠.


⁠Developer Resources

The following section contains information for those wishing to build these images themselves.

In general, the structure consists of the following:

  • base: Base images that start with a minimal OS and add the necessary system requirements required by R.
  • x.y: Images for each major.minor version of R. These images start from the base images and add R, copied from the RStudio CDN.
⁠Building Images
# Build and test all images
make

# Build and test images for a specific R version
make VERSIONS=4.4

# Build and test images for a specific distro
make VARIANTS=noble

# Build a specific image
make build-4.4-noble
# Build a specific patch version
make build-4.4.3-noble

# Test a specific image
make test-4.4-noble
# Test a specific patch version
make test-4.4.3-noble

# Build and test all images, including historic patch versions
make INCLUDE_PATCH_VERSIONS=yes
⁠Updating Images
  1. Update update.sh⁠ and Makefile⁠ with the new distro or R version
  2. Update README.md⁠
  3. Create a new /base//Dockerfile
  4. Generate new Dockerfiles:
    make update-all
    
    # Or, using Docker
    make update-all-docker
    
  5. Build and test the new images locally
  6. Submit a pull request
⁠Rebuilding Images

Rebuild images when the R build has been updated but there are no Dockerfile or base image changes. This ignores the Docker cache and reinstalls R in the image.

# rebuild all images
make rebuild-all

# Rebuild a specific image.
make rebuild-4.4-noble
⁠Publishing Images

See build.yml⁠ for the GitHub Actions workflow that builds these images.

Tag summary

Content type

Image

Digest

sha256:6a3d93a1f…

Size

447.1 MB

Last updated

about 16 hours ago

docker pull rstudio/r-base:devel-rockylinux8