Description Usage Arguments Examples
Run a docker command on a host.
1 2 3 4 5 6 7 8 9 10 | docker_cmd(host = harbor::localhost, cmd = NULL, args = NULL,
docker_opts = NULL, capture_text = FALSE, ...)
## S3 method for class 'localhost'
docker_cmd(host, cmd = NULL, args = NULL,
docker_opts = NULL, capture_text = FALSE, text_from = "stdout", ...)
## S3 method for class 'ssh_host'
docker_cmd(host, cmd = NULL, args = NULL,
docker_opts = NULL, capture_text = FALSE, text_from = "stdout", ...)
|
host |
A host object. |
cmd |
A docker command, such as "run" or "ps" |
args |
Arguments to pass to the docker command. These are passed in
the same way they would need to be passed in to |
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 |
text_from |
where to capture text from |
1 2 3 4 | ## Not run:
docker_cmd(localhost, "ps", "-a")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.