神刀安全网

Shiny Server in Docker container with video demo

Docker container for Shiny Server

Shiny Server in Docker container with video demo

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

Shiny Server in Docker container with video demo Video

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

转载本站任何文章请注明:转载至神刀安全网,谢谢神刀安全网 » Shiny Server in Docker container with video demo

分享到:更多 ()

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
分享按钮