Build a docker image to run a rstudio server docker and the core of rstudio is based on MRAN(https://mran.microsoft.com/).
- Install the Docker(https://docs.docker.com/install/).
- Install the git(https://git-scm.com/downloads).
$ git clone https://github.com/jiankaiwang/rstudio-mran.git
$ cd ./rstudio-mran
$ sudo docker build -t rstudio-mran .
# list available docker images
$ sudo docker images
# list running containers
$ sudo docker ps -a
# run the container
$ sudo docker run -d -p 8787:8787 --name rstdmran rstudio-mran
# stop the container
$ sudo docker stop rstdmran
# restart the container
$ sudo docker restart rstdmran
# remove the container
sudo docker rm rstdmran
$ sudo docker exec -it rstdmran /bin/bash
- Pull from the dockerhub.
# pull from the docker
$ sudo docker pull jiankaiwang/rstudio-mran:latest
- Browser the server localhost:8787 and Login as the guest:guest.
# start the container
$ sudo docker run -d -p 8787:8787 --name rstdmran jiankaiwang/rstudio-mran