Hey there, just wondering if there was a way to connect to a docker container that’s been run in a job. Thanks!
For clarity, something similar to like,
docker exec -it [container-id] bash
If you have the nomad cli installed, run
nomad alloc exec <12356> /bin/bash
It also helps to have autocomplete installed
complete -C /usr/local/bin/nomad nomad
2 Likes