Nomad: [Improvement] Docker exec from Nomad binary

Created on 7 Dec 2016  路  11Comments  路  Source: hashicorp/nomad

Hi guys,

It would be awesome to add a command in Nomad, to execute some command in a container. (something like kubectl exec or docker exec).

Unfortunately, this is specific to docker driver. Do you know how we could manage that ?

themcli themclient typenhancement

Most helpful comment

Any guesstimates on rough timeline for this feature being implemented?

All 11 comments

For now you would have to ssh and then execute the docker exec command but this is something interesting to us

+1
I think it will be very usefull

This would be useful for giving our dev team access to debug from the point of view of their running application without giving them SSH access.

We could also really use this, as we miss the ability of executing interactive shells within containers running in the cluster. In Kubernetes we would do this with a command like kubectl exec -ti $POD /bin/bash.

We had the same issue, so I've build a tool that does this.
It's a sshserver that sits inbetween dev and nomad, you can use plain ssh for commands or use the simple nomadctl wrapper. Authentication via ssh keys.

See https://github.com/42wim/nomadctld for more info

Any thoughts about the priority of this item / if it would end up on the roadmap any time soon?

@margueritepd building a nomad exec capability is on the roadmap for a minor release after 0.9 is out.

Any guesstimates on rough timeline for this feature being implemented?

Actually coming back to this, does alloc exec do what we need for this?

Was this page helpful?
0 / 5 - 0 ratings