openanalytics / shinyproxy-config-examples

Configuration examples for ShinyProxy
https://www.shinyproxy.io
147 stars 110 forks source link

permission error and solution for "07-containerized-docker-swarm" #36

Closed ivokwee closed 1 year ago

ivokwee commented 1 year ago

Script does not work as such. Some permission errors in docker.

java.io.IOException: Permission denied

Could not attach to network sp-example-net: rpc error: code = PermissionDenied desc = network sp-example-net not manually attachable

Solution was to add:

1) add --attachable to when creating network: docker network create -d overlay --attachable sp-example-net

2) add group when launching docker: docker service create ... --group $(getent group docker | cut -d: -f3)` shinyproxy-example

I will make a PR on this.

LEDfan commented 1 year ago

Thanks, PR was merged!