Description Usage Arguments Value Author(s) Examples
Run a command in a new container on a host.
1 2 |
host |
An object representing the host where the container will be run. |
image |
The name or ID of a docker image. |
cmd |
A command to run in the container. |
name |
A name for the container. If none is provided, a random name will be used. |
rm |
If |
detach |
If |
docker_opts |
Options to docker. These are things that come before the docker command, when run on the command line. |
... |
Other arguments passed to the SSH command for the host |
A container
object. When rm=TRUE
, this function returns
NULL
instead of a container object, because the container no longer
exists.
Winston Change winston@stdout.org
1 2 3 4 5 6 7 8 9 10 11 12 | ## Not run:
docker_run(localhost, "debian:testing", "echo foo")
#> foo
# Arguments will be concatenated
docker_run(localhost, "debian:testing", c("echo foo", "bar"))
#> foo bar
docker_run(localhost, "rocker/r-base", c("Rscript", "-e", "1+1"))
#> [1] 2
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.