Skip to content

lc0/docker-shiny-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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