Description Usage Arguments References Examples
View source: R/docker_run_rserver.R
A wrapper for the docker function used to run a R Studio server process on a
specified docker image. The docker image must be based on
rocker. This will be available at the
port specified on the host. Currently, the permissions argument operates
through setting a USERID and GROUPID, which are by default set to my
user's settings. The USERID and GROUPID of the current user can be
checked using the id bash command. In order to make sure your volumes have
the correct permissions, these settings should be modified to match the user
of interest.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
image |
|
port |
|
password |
|
name |
|
detach |
|
rm |
|
volumes |
|
volumes_ro |
|
permissions |
|
USERID |
|
GROUPID |
|
verbose |
|
return_flags |
|
The solution for the permissions of the volumes was taken
from
https://github.com/rocker-org/rocker/wiki/Sharing-files-with-host-machine.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | # below is an example of running docker_run_rserver with minimal config
# importantly, return_flags is set to TRUE
# so this command will NOT execute the docker run command
# only return the flags that would be run, were return_flags set to FALSE
# this is purely for the roxygen example
# in practice, users should set return_flags to FALSE
docker_flags <- docker_run_rserver(
image = "bioconductor/bioconductor_docker:RELEASE_3_13",
port = 8888,
name = "your_container_name",
return_flags = TRUE
)
# the docker command that would run on the system if return_flags = FALSE
paste(c("docker", docker_flags), collapse = " ")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.