r-db is a Dockerfile that can install the whole stack of packages from the CRAN task view “Databases”, plus some others. You can use it for teaching/learning to use these db. Probably for production, but I don’t warrant anything with this, so you should definitely audit the Dockerfile before using it.

Please also check the License file before using.

Get it with:

docker pull colinfay/r-db

Once launched, this Docker image has everything needed to connect and interact with the databases listed in the Databases CRAN View, well at least with the one that can be installed with the {ctv} package, plus some others that might come in the future.


In this book, you’ll also find how to install and interact with these DBMS with other containers.

Note that the Task View will be installed with the status it had on the date of the Docker container, which is defined by the version of R used.

Each DB has an example code you can run. Most are taken from these packages README / docs. Not all are filled and any help testing / writting example code will be welcome.

How to read

The Introduction section describes you how to build a docker network to connect the r-db image with other Docker images so that you’re able to test the packages to connect to databases.

Special thanks