Posted on Leave a comment

linux – Why does “docker attach” hang? – Stack Overflow

docker exec -it bash (you can find the container-id from running docker ps -a). This will pull you into the instance with a functional bash as root (assuming there was no other explicit set up done by the image you pulled). I know the accepted answer has captured this as well, but decided to post another one that is a little more terse and obvious, as the solution didn’t pop out for me when I was reading it.

Source: linux – Why does “docker attach” hang? – Stack Overflow

Leave a Reply

Your email address will not be published. Required fields are marked *