Skip to content

Commit

Permalink
Merge pull request wsargent#41 from FredrikWendt/patch-1
Browse files Browse the repository at this point in the history
Added how to poke around in a running container
  • Loading branch information
wsargent committed May 13, 2015
2 parents f56b6e4 + ef9f515 commit 9e473f6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ If you want to remove also the volumes associated with the container, the deleti

If you want to poke around in an image, `docker run -t -i <myimage> <myshell>` to open a tty.

If you want to poke around in a running container, `docker exec -t -i <mycontainer> <myshell>` to open a tty.

If you want to map a directory on the host to a docker container, `docker run -v $HOSTDIR:$DOCKERDIR`. Also see [Volumes](https://github.com/wsargent/docker-cheat-sheet/#volumes).

If you want to integrate a container with a [host process manager](https://docs.docker.com/articles/host_integration/), start the daemon with `-r=false` then use `docker start -a`.
Expand Down

0 comments on commit 9e473f6

Please sign in to comment.