R/harbor_containers.R

#' Get list of all containers on a host.
#' @inheritParams docker_cmd
#' @export
#' @author Winston Change \email{winston@@stdout.org}
containers <- function(host = localhost, ...) {
  ids <- docker_cmd(host, "ps", "-qa", capture_text = TRUE, ...)

  cons <- lapply(ids, as.container, host)
  names(cons) <- pluck(cons, "name", character(1))
  cons
}

Try the googleComputeEngineR package in your browser

Any scripts or data that you put into this service are public.

googleComputeEngineR documentation built on May 6, 2019, 1:01 a.m.