Skip to content

Instantly share code, notes, and snippets.

@fernaspiazu
Last active August 27, 2015 09:18
Show Gist options
  • Save fernaspiazu/6fa8b812ba98ce20c8fe to your computer and use it in GitHub Desktop.
Save fernaspiazu/6fa8b812ba98ce20c8fe to your computer and use it in GitHub Desktop.
How to detach from a running container keeping it running
Ctrl+P+Q detaches from a docker container without stopping it.
To be consistent with every other docker command Ctrl+C terminates the process/container and Ctrl+P+Q detaches.
Based on this discussion: https://github.com/docker/docker/issues/2855
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment