docker_cmd: Run a docker command on a host.

Description Usage Arguments Examples

View source: R/driver-docker.R

Description

Run a docker command on a host.

Usage

1
2
3
4
5
6
## S3 method for class 'localhost'
docker_cmd_con(host, cmd = NULL, args = NULL,
  docker_opts = NULL, ...)

docker_cmd(host, cmd = NULL, args = NULL, docker_opts = NULL,
  capture_text = FALSE, ...)

Arguments

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.

...

Other arguments passed to the SSH command for the host

capture_text

If FALSE (the default), return the host object. This is useful for chaining functions. If TRUE, capture the text output from both stdout and stderr, and return that. Note that TRUE may not be available on all types of hosts.

Examples

1
2
3
4
## Not run: 
docker_cmd(localhost, "ps", "-a")

## End(Not run)

james-atkins/resurrectr documentation built on Feb. 16, 2021, 12:06 a.m.