tcardonne / docker-github-runner

Run GitHub Actions on self-hosted runner using Docker.
MIT License
297 stars 124 forks source link

Can't docker attach to container #28

Closed drewwestrick closed 4 years ago

drewwestrick commented 4 years ago

I'm trying to do some troubleshooting by attaching to a running docker-github-runner container. Is it possible that the supervisor command is blocking a bash shell from opening when I try to attach? Curious if anyone else has run into this issue.

UrosCvijan commented 4 years ago

Did you try to just do an exec? Does that get the job done? docker exec -it $CONT_ID /bin/sh

drewwestrick commented 4 years ago

Thanks, that did the trick. When I was attaching I think I was attaching to the output of the supervisord command. Doing an exec of /bin/sh or /bin/bash works great. Closing the issue.