docker_cmd.gce_instance: Docker S3 method for use with harbor package

Description Usage Arguments Details

View source: R/harbor_gce.R

Description

Docker S3 method for use with harbor package

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## S3 method for class 'gce_instance'
docker_cmd(
  host,
  cmd = NULL,
  args = NULL,
  docker_opts = NULL,
  capture_text = FALSE,
  nvidia = FALSE,
  ...
)

Arguments

host

The GCE instance

cmd

The command to pass to docker

args

arguments to the command

docker_opts

options for docker

capture_text

whether to return the output

nvidia

If true will use nvidia-docker instead of docker

...

other arguments passed to gce_ssh

Details

Instances launched in the google-containers image family automatically add your user to the docker group, but for others you will need to run sudo usermod -a -G docker ${USER} and log out and back in.


cloudyr/googleComputeEngineR documentation built on Jan. 23, 2022, 8:30 a.m.