Issue (and fix) for SWARM_MODE not working with a daemon proxy
mxmeeple opened this issue · comments
So while setting up this container I also used a docker-socket-proxy. and I noticed that when I used SWARM_MODE this caused the container to loop with an indefinite error message.
container-logs.txt
This was because the socket location wasnt being passed to 'docker.APIClient' call.
My Solution
Reproducible with this compose file on a swarm
docker-stack.yaml
(Also sorry if this isnt the proper way to do things, I am quite new to git with other users. )