I found when developing Althing, I wanted to poke around in the container. Swarm didn't have a consistent name for the container, so I found a one liner (Ha!) to dynamically docker exec -it /bin/bash. To use it, just run source aliases.sh from the project's root directory. Then you can run run_[service_name].
As a next step, I'd consider writing a bash script that would take a service name as an argument and then find the container based on that rather than statically coded aliases.
I found when developing Althing, I wanted to poke around in the container. Swarm didn't have a consistent name for the container, so I found a one liner (Ha!) to dynamically docker exec -it /bin/bash. To use it, just run
source aliases.sh
from the project's root directory. Then you can runrun_[service_name]
.As a next step, I'd consider writing a bash script that would take a service name as an argument and then find the container based on that rather than statically coded aliases.