From Shinyproxy issues:
shrektan commented on 29 Aug Hi, I would like to use shinyproxy on OSX.
It seems like the only way to connect to the daemon of Docker For Mac, is using unix:///var/run/docker.sock. However, if I change url to unix:///var/run/docker.sock in application.yml, an error occurs:
Status code: 500 Message: Failed to start container: unknown protocol: unix After some digging, get the workaround that works:
socat TCP-LISTEN:2375,range=127.0.0.1/32,reuseaddr,fork UNIX-CLIENT:/var/run/docker.sock It takes me two hours to find the workaround. I guess other people who using OSX will need it as well. Please add it to the documentation if you're in convenient.
Thanks. @tverbeke Owner tverbeke commented on 29 Aug Many thanks @shrektan for sharing! We will add this to the docs. To be sure I understand:
you leave url: http://localhost:2375 inside the application.yml file you execute $ socat TCP-LISTEN:2375,range=127.0.0.1/32,reuseaddr,fork UNIX-CLIENT:/var/run/docker.sock as a plain user you launch shinyproxy using java -jar shinyproxy-0.9.4.jar and it works? @shrektan
shrektan commented on 30 Aug @tverbeke yes, it works. Of course, I need to execute brew install socat in the terminal first (if anyone doesn't have brew on his/her OSX, go to https://brew.sh/).