harbor (version 0.2.0)

docker_pull: Pull a docker image onto a host.

Description

Pull a docker image onto a host.

Usage

docker_pull(host = harbor::localhost, image, docker_opts = NULL,
  capture_text = FALSE, ...)

Arguments

host

A host object.

image

The docker image to pull e.g. rocker/rstudio

docker_opts

Options to docker. These are things that come before the docker command, when run on the command line.

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 thatTRUE`` may not be available on all types of hosts.

...

Other arguments passed to the SSH command for the host

Value

The host object.

Examples

Run this code
# NOT RUN {
docker_pull(localhost, "debian:testing")
# }

Run the code above in your browser using DataCamp Workspace