Description Usage Arguments Details Value Examples
View source: R/sp_docker_functions.R
Creates a container and runs an image in it.
1 | sp_docker_run(image_tag, options = "", command = "", args = "")
|
image_tag |
character: a valid image tag (name) for the docker image. If
it doesn't exist locally, Note that the full syntax of an image tag is |
options |
character: the options to use when running the image. Default
is the empty string. You will usually need at least the |
command |
character: the command to run after the container boots up. Default is an empty string, which uses the startup command defined in the image. |
args |
character: the arguments for the command. Default is an empty string. |
Do docker run --help
in a command prompt to see all the options,
of which there are many.
Result of Docker command if it succeeded. Stops with an error message if it failed.
1 2 3 4 5 | ## Not run:
print(sp_docker_run("hello-world"))
sp_docker_images_tibble()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.