Containers
A container is an instance of an image.
“A container is a runtime instance of an image - what the image becomes in memory when actually executed. It runs completely isolated from the host environment by default, only accessing host files and ports if configured to do so.”
# Start a container
$ docker run -p 3838:3838 -v /data:/data -d rocker/shiny
# -p ~ publish port to the world
# -d ~ run in detached mode
# -v ~ mount host volume in the container
# List running container
$ docker ps
# List stopped container as well
$ docker ps -a