This is an internal function executing a docker container. Not to be used by users.

runDocker(group = "docker", params = NULL, DockerSwarm = FALSE)

Arguments

group,

a character string. Two options: "sudo" or "docker", depending to which group the user belongs

params,

a character string containing all parameters needed to tun the docker container

DockerSwarm,

a bolean value used to enable docker execution in swarm mode.

Value

0 if success, 1 if parameters are missing, 2 if the group is neither sudo or docker, 3 if docker execution fails.

Author

Raffaele Calogero

Examples

if (FALSE) {
    #running runDocker
     runDocker(group="docker", params=NULL)

}