Specify user in nomad alloc exec #24686
Labels
hcc/jira
stage/accepted
Confirmed, and intend to work on. No timeline committment though.
theme/allocation API
type/enhancement
Proposal
docker exec -it -u root abc123 bash
The above docker command allows you to override any 'USER' command specified in the Dockerfile and run bash as root.
There does not seem to be any way to override this user with 'nomad alloc exec'.
Use-cases
This is a useful feature when debugging/troubleshooting some allocations where the operator needs to act as root for a given allocation.
Attempted Solutions
So an operator can work around this limitation by logging into the Nomad client that is running the allocation and from there they can docker exec -it -u root cba321 bash
The text was updated successfully, but these errors were encountered: