Running RStudio Connect through a docker container

We're looking at getting started with RStudio Connect and wondered whether anyone has experience of running this through a docker container (the idea being that we could make use of the rocker images for Linux dependencies and R version control)?
If so, are there any performance issues that we might need to look out for?

1 Like

I'm guessing that you already saw this larger thread about Docker and the specific post from @jclemens1 about licensing issues, but just in case:

Also, this SO Q&A has some good general thoughts:

Unfortunately, I don't have any personal performance comparisons to provide!

1 Like

Running RStudio Connect in a container is possible but, in general, is not recommended. Connect is designed to isolate and sandbox user applications. In essence, Connect runs its own "containers". To do so requires root, which means for Connect itself to run in a container requires privileged access.

To address your needs, I'd instead recommend recommend running Connect in a persistent server. Connect is designed to use and support multiple versions of R. This flexibility ensures that content can be "deployed and forgotten" by R users who invariably will use multiple versions of R. We recommend building R from source in a directory structure that contains the R version, for example:



The admin guide also includes a list of suggested system dependencies for R packages:
Ubuntu -
REHL / CentOS -

If you wish to pursue the Docker container further, please contact your Customer Success rep.




@nick Thanks, stack overflow link was interesting.

@slopp Thanks. One of the main reasons to use docker was to help manage the linux dependencies (via rocker - our production environments have a principle of tearing down and rebuilding the underlying servers based on scripted builds and this would be one less part of the script we would need to maintain).


1 Like

Quick update! We have added further instructions for those interested in running RStudio Connect in Docker to the RStudio Connect admin guide: