[SOLVED] Error 500. Connect to localhost, connection refused


#1

Hi,

I encounter this issue after running java -jar shinyproxy-0.8.6.jar and access my app

Error

Status code: 500

Message: Failed to start container: java.util.concurrent.ExecutionException: javax.ws.rs.ProcessingException: org.apache.http.conn.HttpHostConnectException: Connect to localhost:80 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused

I am using centos and I have tried changing localhost:80 to localhost:3838 etc to no avail.

I ran my app standalone no issue
sudo docker run -it -p 3838:3838 template1

Need some advise.

Thanks.

Jeff


#2

On cento I have added the following line to docker config var/system/docker

other_args="-H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock"

It is inline with the Docker startup configuration
https://www.shinyproxy.io/getting-started/

However, on Centos as the above mentioned have to tweet a little.
I took reference from: