Switch branches/tags
Nothing to show
Find file History
giocomai Make explicit that image must be available on the host
To users trying out the example files it may not be immediately obvious that the Docker image must be available on the host, and the error message is very generic. This seems to be an issue with other users that test ShinyProxy, see also: openanalytics/shinyproxy#82
Latest commit 072907b Nov 7, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
Dockerfile Updated links for version 2.0.5 Oct 16, 2018
README.md Make explicit that image must be available on the host Nov 7, 2018
application.yml Fixed config names Jul 23, 2018


Example: containerized ShinyProxy with a docker engine

This example is similar to the example 'standalone ShinyProxy with a docker engine', with one exception: ShinyProxy runs in a container itself, in the same container manager (i.e. docker engine) that also hosts the containers for the users' Shiny apps.

How to run

  1. Download the Dockerfile from the folder where this README is located.
  2. Download the application.yml configuration file from the folder where this README is located.
  3. Place the files in the same directory, e.g. /home/user/sp
  4. Create a docker network that ShinyProxy will use to communicate with the Shiny containers.

sudo docker network create sp-example-net

  1. Open a terminal, go to the directory /home/user/sp, and run the following command to build the ShinyProxy image:

sudo docker build . -t shinyproxy-example

  1. Run the following command to launch the ShinyProxy container:

sudo docker run -d -v /var/run/docker.sock:/var/run/docker.sock --net sp-example-net -p 8080:8080 shinyproxy-example

Notes on the configuration

  • ShinyProxy will listen for HTTP traffic on port 8080.

  • The custom bridge network sp-example-net is needed to allow the containers to access each other using the container ID as hostname.

  • ShinyProxy expects relevant Docker images to be already available on the host. Before running this example, pull the Docker image used in this example with:

sudo docker pull openanalytics/shinyproxy-demo