I'm wanting to use the R package MODIStsp to download and process MODIS data, but currently there is an issue with GDAL's HDF4 driver package in my version of Linux (Manjaro). I've contacted the package maintainer, but in the mean time, I'd like to use a Dockerized version of GDAL on the backend to complete the task.
I know from within R it is possible to set the version of GDAL used ala
gdalUtils::gdal_setInstallation("/path/to/gdal/here")
My question is this: after I've pulled the osgeo/gdal image, how I can run the container in such a way to make it available to be used in R? And then how would the path get constructed in the function above?