Skip to content

Latest commit

 

History

History
44 lines (31 loc) · 1.71 KB

README.md

File metadata and controls

44 lines (31 loc) · 1.71 KB

Docker container for Shiny Server

Docker Repository on Quay Docker Hub

The image is also available from Docker Hub.

Usage:

To run a container with Shiny Server

docker run -d -p 3838:3838 sergii/docker-shiny-server

If you run docker-machine you need to find IP of the running: docker-machine ip machine_name

Or just generate a complete URL of Shiny server:

echo http://$(docker-machine ip machine_name):3838

In order to run your application you can use Docker Volumes

docker run -d -p 3838:3838 -v ~/pop:/srv/shiny-server/pop sergii/docker-shiny-server

In this case, our application is located in ~/pop. Running application should be available by URL:

echo http://$(docker-machine ip machine_name):3838/pop

Now you can just edit you R files, without a need to rebuild an image every time. Be aware, folder sharing works for OSX docker-machine automatically only if your project is located in a home directory.

Video

lc0/docker-shiny-server example/docker-shiny-server Video


lc0.github.io  ·  Twitter @lc0d3r  ·  GitHub @lc0