I can attach to a docker process but Ctrl+c doesn\'t work to detach from it. exit
basically halts the process.
What\'s the recomm
I typically used docker attach to see what STDOUT was displaying, for troubleshooting containers. I just found docker logs --follow 621a4334f97b
, which lets me see the STDOUT whilst also being able to ctrl+c off of it without affecting container operation! Exactly what I've always wanted.
... naturally you'll need to substitue in your own container ID.
I wanted to leave the container running, but had attached without starting the container with -it
. My solution was to sacrifice my SSH connection instead (since I was SSHed into the machine that was running the containers). Killing that ssh session left the container intact but detached me from it.