Hi,
yes my question looks like tricky… but not really
Does someone manage to run shinyproxy inside a docker container ?
This is the Dockerfile a made :
FROM openjdk
RUN apt-get update
RUN apt-get -y install nano htop
VOLUME "/home/shiny"
RUN apt-get -y install \
apt-transport-https \
ca-certificates \
curl \
gnupg2 \
software-properties-common
RUN curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add -
RUN add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/debian \
$(lsb_release -cs) \
stable"
RUN apt-get update
RUN apt-get install -y docker-ce
VOLUME /var/lib/docker
CMD ["java","-jar","/home/shiny/shinyproxy.jar"]
I can build this image using
docker build -t shinyproxy .
And I can run this :
docker run -p 8080:8080 --privileged -v /home/shiny:/home/shiny -v /var/run/docker.sock:/var/run/docker.sock -it shinyproxy
(of course shinyproxy.jar have to be in /home/shiny on the host machine)
Shinyproxy is online at my_ip:8080 , ask for credentiel (tesla//password), but cant run any app.
I have this error :
org.springframework.web.util.NestedServletException: Request processing failed; nested exception is eu.openanalytics.ShinyProxyException: Failed to start container: java.util.concurrent.ExecutionException: javax.ws.rs.ProcessingException: org.apache.http.conn.HttpHostConnectException: Connect to localhost:2375 [localhost/127.0.0.1] failed: Connection refused (Connection refused)
I dont know how to deal with the :
ExecStart=/usr/bin/docker daemon -H fd:// -D -H tcp://127.0.0.1:2375
Any Idea ?
Regards