Description Usage Arguments Value Examples
Initialize a docker image into a docker container. Generates a dockercon object to help monitor status of docker container.
1 | docker_run(image, name, ports, mountpoints, docker_run_args)
|
image |
Repository address in the format username/image[:tag] |
name |
name of the docker container. can be left empty |
ports |
what port to expose and connect to in the docker container format is port:port |
mountpoints |
what folder to expose to the docker container, where to connect to it within the docker container. format is dir:dir |
docker_run_args |
any additional arguments to be passed to the 'docker run' command. |
docker_conn object
1 2 3 4 5 | ## Not run:
# Start a docker container from the rocker/r-ver:devel image
d_conn<-docker_run(image = "rocker/r-ver:devel", name = "testimage")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.