Merge pull request #41 from FredrikWendt/patch-1

Added how to poke around in a running container
This commit is contained in:
Will Sargent 2015-05-12 18:13:16 -07:00
commit 9e473f619a

View file

@ -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`.