This repository provides Docker images for the mlr3 project. Available on Docker Hub, we offer two distinct configurations: a slim installation for a lightweight setup, and a full installation that includes all extensions and dependencies for comprehensive use. We also offer a container to build the mlr3 book.
Get the images from Docker Hub, e.g.:
docker pull mlrorg/mlr3-slim:latestThe images build on rocker/rstudio:latest, except for mlr3slim, which builds on rocker/r-ver:latest.
See rocker-versioned2 repo for details.
| image | description | metrics |
|---|---|---|
| mlr3-book | Container to build mlr3 book | |
| mlr3-slim | Adds mlr3verse | |
| mlr3-full | Adds mlr3verse & mlr3extralearners incl. dependencies | |
| mlr3-website | Container to build mlr3 website |
The images are based on rocker which uses Posit Package Manager (PPM) as the default R package repository instead of CRAN.
PPM provides pre-built Linux binaries which speeds up builds significantly.
However, PPM can lag behind CRAN after new package releases.
During this window, a newly released package may be missing from PPM entirely (the old version is removed before the new one is indexed).
To avoid build failures, the Dockerfiles add CRAN (https://cloud.r-project.org) as a fallback repository (CRAN2).
PPM remains the primary repository so that pre-built binaries are used when available.
Build the mlr3 book image:
docker build -t mlr3-book mlr3bookTag the image:
docker tag mlr3-book mlrorg/mlr3-book:latestUpload the image to Docker Hub:
docker push mlrorg/mlr3-book:latest