Skip to content

Commit

Permalink
Merge pull request wsargent#163 from sonofspring2/patch-1
Browse files Browse the repository at this point in the history
add how to detach a container
  • Loading branch information
wsargent authored Jan 26, 2019
2 parents 8070973 + 7697fd0 commit a66728e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,9 @@ Another useful option is `docker run --name yourname docker_image` because when
* [`docker kill`](https://docs.docker.com/engine/reference/commandline/kill) sends a SIGKILL to a running container.
* [`docker attach`](https://docs.docker.com/engine/reference/commandline/attach) will connect to a running container.

If you want to detach from a running container, use `Ctrl + p, Ctrl + q`.
If you want to integrate a container with a [host process manager](https://docs.docker.com/engine/admin/host_integration/), start the daemon with `-r=false` then use `docker start -a`.

If you want to expose container ports through the host, see the [exposing ports](#exposing-ports) section.

Restart policies on crashed docker instances are [covered here](http://container42.com/2014/09/30/docker-restart-policies/).
Expand Down

0 comments on commit a66728e

Please sign in to comment.