A problem with Docker Swarm and automation with it has been that you can't directly exec into any service from the command line. There exist some workarounds to achieve this behaviour, but in the end you want something similar and as convenient as `docker exec` but for services.<p>Recently I have been playing around with the idea of achieving this by deploying `tecnativa/docker-socket-proxy` in the swarm, and then using this to proxy to the proper host in the swarm you want to reach. It turns out that this works like a charm.<p>I recently played with a prototype for this where you had to first deploy the `tecnativa/docker-socket-proxy` stack into your swarm. Also you had to know which node the task was running on for this to be useful. I improved this situation. All you need to do is install the proper Docker CLI plugin I built, and you can get a shell into any service you need to. All you need is a connection to a Docker Swarm Manager:<p>docker swarmproxy service exec -it vibrant_bell bash<p><a href="https://github.com/neuroforgede/docker-swarm-proxy">https://github.com/neuroforgede/docker-swarm-proxy</a><p>Maybe this is useful for some people around here :)