docker_cmd.RdRun a docker command on a host.
docker_cmd(host, cmd = NULL, args = NULL, docker_opts = NULL, capture_text = FALSE, ...)
| host | A host object. |
|---|---|
| cmd | A docker command, such as "run" or "ps" |
| args | Arguments to pass to the docker command |
| docker_opts | Options to docker. These are things that come before the docker command, when run on the command line. |
| capture_text | If |
| ... | Other arguments passed to the SSH command for the host |
if (FALSE) { docker_cmd(localhost, "ps", "-a") }