# Shows both runnning and stopped containers
docker ps -a
docker rmi image
docker image ls
# Runs the latest version
docker run -ti --rm rocker/r-ver R
# Runs the specified version
docker run -ti --rm rocker/r-ver:4.1.2 R
# ti flag is to run interactively
# rm to remove the container once the session is closed
docker run -d --name rstudio -p 80:8787 rocker/rstudio