Description Usage Arguments Details Value Warning
Functions uses system
to see what docker containers are running and
returns running containers as a data frame.
It throws an Error
if docker is not installed or docker deamon is not running (incl informative message).
1 | get_running_dockers(format.string = "table {{.Names}},{{.Image}},{{.ID}},{{.Ports}}")
|
format.string |
the formatting string passed to |
The output is generated by runing `docker ps --format '...'`
in the shell.
Hence, a function call throws an Error
if either
(i) operating system is Windows,
(ii) docker is not installed on system, or
(iii) the docker deamon is not running.
A data frame with columns as defined by format.string
,
i.e. 'names', 'image', 'container_id', and 'ports' for the default formatting string.
Each row representes one running container (hence, 0 rows if no container is running).
Currently implemented for Mac OSX/Unix/Linux only.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.