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 recommended workflow to have the process running, occasionally attaching to it to make some changes, and then detaching?
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 recommended workflow to have the process running, occasionally attaching to it to make some changes, and then detaching?
To detach the tty without exiting the shell, use the escape sequence Ctrl+P followed by Ctrl+Q. More details here.
Additional info from this source:
^P^Q
and reattached with docker attach^P^Q
; will disrupt stdin^P^Q
; can SIGKILL client; can reattach with docker attach