Docker image for geospatial R packages in Fred Hutch OCDO's WILDS
147
This directory contains Docker images for r-spatial, an R environment for geospatial analysis built on Rocker/geospatial with additional commonly used spatial and utility CRAN packages.
latest ( Dockerfile | Vulnerability Report )0.1.0 ( Dockerfile | Vulnerability Report )Both linux/amd64 and linux/arm64 are intended; rocker/geospatial publishes both architectures. ARM64 has not yet been verified for this image.
These Docker images are built from the rocker/geospatial:4.6.1 base image (R 4.6.1) and include:
sf, terra, raster, stars, lwgeom, the tidyverse, and the system libraries GDAL, GEOS, PROJ, and udunitsThe added CRAN packages (exactextractr, ggspatial, rnaturalearth, tigris, optparse) are installed from a dated Posit Package Manager snapshot (2026-10-23); everything else is fixed by the rocker/geospatial:4.6.1 base image tag. The exact package and GDAL/GEOS/PROJ versions are printed in the image build log by the smoke test.
Official documentation: sf, terra, Rocker project.
docker pull getwilds/r-spatial:latest
# or
docker pull getwilds/r-spatial:0.1.0
# Alternatively, pull from GitHub Container Registry
docker pull ghcr.io/getwilds/r-spatial:latest
apptainer pull docker://getwilds/r-spatial:latest
# or
apptainer pull docker://getwilds/r-spatial:0.1.0
# Alternatively, pull from GitHub Container Registry
apptainer pull docker://ghcr.io/getwilds/r-spatial:latest
# Run an R script with Docker
docker run --rm -v /path/to/data:/data getwilds/r-spatial:latest \
Rscript /data/analysis.R --input /data/regions.gpkg --output /data/results.csv
# Print GDAL/GEOS/PROJ versions
docker run --rm getwilds/r-spatial:latest \
Rscript -e 'print(sf::sf_extSoftVersion())'
# Run an R script with Apptainer
apptainer run --bind /path/to/data:/data docker://getwilds/r-spatial:latest \
Rscript /data/analysis.R --input /data/regions.gpkg --output /data/results.csv
# Apptainer (local SIF file)
apptainer run --bind /path/to/data:/data r-spatial_latest.sif \
Rscript /data/analysis.R --input /data/regions.gpkg --output /data/results.csv
These images are regularly scanned for vulnerabilities using Docker Scout. However, due to the nature of bioinformatics software and their dependencies, some Docker images may contain components with known vulnerabilities (CVEs).
Use at your own risk: While we strive to minimize security issues, these images are primarily designed for research and analytical workflows in controlled environments.
For the latest security information about this image, please check the CVEs_*.md files in this directory, which are automatically updated through our GitHub Actions workflow. If a particular vulnerability is of concern, please file an issue in the GitHub repo citing which CVE you would like to be addressed.
The Dockerfile follows these main steps:
rocker/geospatial:4.6.1 as the base image, which provides R, sf, terra, and the geospatial system librariesIssues and pull requests are welcome in the WILDS Docker Library repository. See the contributing guidelines.
These Dockerfiles are maintained in the WILDS Docker Library repository.
Content type
Image
Digest
sha256:dcad2ce9e…
Size
1.6 GB
Last updated
1 day ago
docker pull getwilds/r-spatial