docker_run: Initialize a docker container from an image

Description Usage Arguments Value Examples

View source: R/docker_run.R

Description

Initialize a docker image into a docker container. Generates a dockercon object to help monitor status of docker container.

Usage

1
docker_run(image, name, ports, mountpoints, docker_run_args)

Arguments

image

Repository address in the format username/image[:tag]

name

name of the docker container. can be left empty

ports

what port to expose and connect to in the docker container format is port:port

mountpoints

what folder to expose to the docker container, where to connect to it within the docker container. format is dir:dir

docker_run_args

any additional arguments to be passed to the 'docker run' command.

Value

docker_conn object

Examples

1
2
3
4
5
## Not run: 
# Start a docker container from the rocker/r-ver:devel image
d_conn<-docker_run(image = "rocker/r-ver:devel", name = "testimage")

## End(Not run)

thebioengineer/dockyard documentation built on Dec. 4, 2019, 1:44 a.m.