Favicon of Rocker

Rocker

Get started with R and RStudio in seconds using pre-built Docker containers. Access versioned, reproducible environments for your data science projects.

Quickly launch R or RStudio environments using pre-configured Docker containers. This project eliminates the complexity of installing and managing R and its dependencies, providing a consistent and reproducible setup for any machine. Whether you need a simple R console or a full-featured RStudio Server IDE, you can get started with a single command.

The project offers a variety of images to suit different needs:

  • Base Stack: Minimal containers with just R, perfect for scripting and automation.
  • Versioned Stack: Pin your environment to specific R versions for maximum reproducibility in your research and analysis.
  • RStudio Images: Run a complete RStudio Server instance directly from a container, accessible via your web browser.
  • Specialized Images: Access containers pre-loaded with popular packages like the Tidyverse or geospatial libraries, saving you setup time.

By containerizing the R environment, you can easily share your work, collaborate with others, and ensure your code runs the same way, every time.

Directory Structure

rocker
workspace
.env
docker-compose.yml

docker-compose.yml

services:
  rstudio:
    image: rocker/rstudio:latest
    container_name: rstudio
    environment:
      - PASSWORD=${RSTUDIO_PASSWORD}
      - ROOT=true
    ports:
      - "8787:8787"
    volumes:
      - ./workspace:/home/rstudio
    restart: unless-stopped

.env

RSTUDIO_PASSWORD=your_super_secret_password
Categories:

Share:

Ad
Favicon

 

  
 

Similar to Rocker

Favicon

 

  
  
Favicon

 

  
  
Favicon