Run a command in a new container on a host.
docker_run(host = localhost, image = NULL, cmd = NULL, name = NULL, rm = FALSE, detach = FALSE, docker_opts = NULL, ...)
An object representing the host where the container will be run.
The name or ID of a docker image.
A command to run in the container.
A name for the container. If none is provided, a random name will be used.
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
container object. When
rm=TRUE, this function returns
NULL instead of a container object, because the container no longer