Skip to content
Discussion options

You must be logged in to vote

It's because swarm actually has no equivalent "docker compose exec" functionality like Server based Stacks do. Just like the docker stack command don't support environment files etc. its because Services in swarm do not equal containers, what if a service had many replicas, what container do you exec into?

Please note this is docker level stuff and Komodo still lets you build the abstraction yourself already.

You could make an Komodo action which queries for the swarm services, finds the associated tasks to get container ids, and does the execute_container_terminal using this (this method accepts both container id or name, id easier to get here)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@larger0o
Comment options

Answer selected by larger0o
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants