Container failed to start issue - containerised ShinyProxy


#1

Hi,

I’m just getting started trying to use ShinyProxy to host a shiny app that I’ve built. I’m trying to do so running shiny proxy inside a docker container as per example set up 02 (in fact I’m deploying it from that example with a few tweaks made to the application.yml file.

The container image for the app itself builds ok and I can access it directly when spun up outside of shiny proxy.

I created the docker network and the application.yml file looks like this
image

I’ve checked for firewall issues as per the troubleshooting guide and that doesn’t appear to be the problem. Any suggestions would be much appreciated


#2

Hi,

Have you tried authentication: simple?
Did you do this?

Create a docker network that ShinyProxy will use to communicate with the Shiny containers.

docker network create sp-example-net

Build the ShinyProxy image:

docker build . -t shinyproxy-example

Run the following command to launch the ShinyProxy container:

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

You can try to see the log:
docker logs [OPTIONS] CONTAINER

Kind regards,
Ana


#3

Thanks Ana, I was missing the -v and the --net specification in the docker run command. I naively assumed that it would pick that information up from the application.yml.

All seems to be working smoothly now.

Cheers

Tom