Docker Desktop (if your computer/operating system is newish and is enterprise or business edition for windows)
Docker Toolbox (if you computer/operating system is not compatible with Docker Desktop)
With the docker quickstart terminal or a normal terminal, type:
docker run hello-world
If you've installed Docker Desktop, you are fine, but if you installed Docker Toolbox, read on. We are going to be working through the browser with rstudio today and so we need to do some extra steps to allow docker to communicate with the browser.
Once you've already installed and started docker and made sure it works,
we will find the virtualbox application.
Once virtualbox is open, select the "default" box and make sure it is shut down, or otherwise not running.
Click the gear icon named settings.
Select Network on the sidebar.
Click the triangle by "advanced" to expand options.
Select the port forwarding option and place the port numbers 8787 in both the host port and guest port.
Name the connection rstudio.
Click on the quickstart terminal again to restart docker. Now you are ready to get started!
run the docker image without explicitly downloading anything
Docker Desktop (Windows/Mac) or Docker native (Linux):
docker run --rm -p 127.0.0.1:8787:8787 -e PASSWORD=uibh jdkent/tut-rstudio
Docker Toolbox:
docker run --rm -p 192.168.99.100:8787:8787 -e PASSWORD=uibh jdkent/tut-rstudio
If you want to persistently change files, you will have to clone the repository where
the data came from.
git clone https://github.com/jdkent/tutDockerRstudio.git
cd tutDockerRstudio
Docker Desktop (Windows/Mac) or Docker native (Linux):
docker run --rm -p 127.0.0.1:8787:8787 -e PASSWORD=uibh -v ${PWD}:/home/rstudio/project jdkent/tut-rstudio
Docker Toolbox:
docker run --rm -p 192.168.99.100:8787:8787 -e PASSWORD=uibh -v ${PWD}:/home/rstudio/project jdkent/tut-rstudio
Content type
Image
Digest
Size
710.7 MB
Last updated
about 7 years ago
docker pull jdkent/tut-rstudio