| title |
|---|
Rocker Pre-built Dev Container Images |
- Source repository: rocker-org/devcontainer-images
- Source
- tags
- Published image details: rocker-org/devcontainer-images's wiki
- Non-root default user:
rstudio
The Rocker Project provides some Docker container images which built with Dev Container Features. Packages commonly used for development are already installed.
These images are intended to be images for R that can be used like the Dev Container images
built from devcontainers/images for each language.
ghcr.io/rocker-org/devcontainer/r-ver, ghcr.io/rocker-org/devcontainer/tidyverse,
and ghcr.io/rocker-org/devcontainer/geospatial are correspond to rocker/r-ver,
rocker/tidyverse, and rocker/geospatial, respectively.
Specify the image in devcontainer.json as follows.
{
"image": "ghcr.io/rocker-org/devcontainer/r-ver:4"
}The basic usage is to customize by adding Dev Container Features here.
Or, we can use it as a base image in a Dockerfile.
FROM ghcr.io/rocker-org/devcontainer/tidyverse:4To install the R package on the Dockerfile, please refer to the Extending images page.
When using a combination of a devcontainer.json and a Dockerfile,
the devcontainer.json file must be rewritten to refer to the Dockerfile.
{
"build": {
"dockerfile": "Dockerfile"
}
}We can use radian instead of the default R console.
docker run --rm -ti ghcr.io/rocker-org/devcontainer/r-ver:4 radianAlso httpgd is already installed
so we can expose the container port to show the plot in the browser.
See the GUI page for details.
ghcr.io/rocker-org/devcontainer/tidyverse and ghcr.io/rocker-org/devcontainer/geospatial
have already installed RStudio Server.
See the rocker/rstudio reference page for usage.