by ancieque on 6/25/23, 1:39 PM with 0 comments
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.
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:
docker swarmproxy service exec -it vibrant_bell bash
https://github.com/neuroforgede/docker-swarm-proxy
Maybe this is useful for some people around here :)