small example using a docker image from https://github.com/hypertidy/gdal-r-ci, I'm using dev because the mdim print output is human readable (by default, json by option)
docker pull ghcr.io/hypertidy/gdal-system:dev
docker run --rm -ti ghcr.io/hypertidy/gdal-system:dev
#── ghcr.io/hypertidy/gdal-system ──
#GDAL 3.14.0dev PROJ 9.8.1 GEOS 3.15.0beta1
#Py 3.12.3 numpy 2.5.1