docker.pull: Use docker to pull image
Description
Use docker to pull image
Usage
docker.pull(repo, name, version = NULL, docker.bin = NULL,
all.tags = FALSE, disable.content.trust = TRUE, verbose = TRUE)
Arguments
repo,
Repository name of docker hub, e.g life2cloud
docker.bin
Docker executable file, default is 'docker' in $PATH
all.tags
Download all tagged images in the repository
disable.content.trust
Skip image verification (default true)
verbose
Ligical indicating wheather show the log message
Examples
Run this code# NOT RUN {
docker.bin <- unname(Sys.which('docker'))
if (docker.bin != '') {
docker.pull(repo = 'learn', name = 'tutorial')
}
# }
Run the code above in your browser using DataLab