Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
start a docker centos image detached with stdin and a pseudo-tty to keep it running like a vm until bash is killed
docker run -t -i -d centos /bin/bash
@AndrewRussellHayes

This comment has been minimized.

Copy link
Owner Author

AndrewRussellHayes commented Oct 28, 2014

still having issues with attach and detach

@AndrewRussellHayes

This comment has been minimized.

Copy link
Owner Author

AndrewRussellHayes commented Oct 28, 2014

fixed:

You can detach from the container again (and leave it running) with CTRL-p CTRL-q (for a quiet exit), or CTRL-c which will send a SIGKILL to the container, or CTRL-\ to get a stacktrace of the Docker client when it quits. When you detach from the container's process the exit code will be returned to the client.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.