R/utility-functions.R
See https://docs.docker.com/engine/reference/commandline/inspect/
docker_inspect(host = harbor::localhost, name, labelsOnly = FALSE, docker_opts = character(0), ...)
host | A host object, as specified by the harbor package |
---|---|
name | Name or id of the docker object (can also be a list of multiple names/ids) |
labelsOnly | Whether to restrict the output to the field Config > Labels |
docker_opts | Options to docker. These are things that come before the docker command, when run on the command line. (as in harbor::docker:cmd) |
... | Other arguments passed to the SSH command for the host |
A named list of labels for each name or id given. (So, if there are multiple names/ids a list of named lists is returned)
The imlementation is based on docker_cmd in the harbor package
# NOT RUN { docker_inspect(name="rocker/r-ver:3.3.2") # }