mirror of
https://github.com/wsargent/docker-cheat-sheet.git
synced 2025-09-22 05:40:50 +02:00
Merge pull request #41 from FredrikWendt/patch-1
Added how to poke around in a running container
This commit is contained in:
commit
9e473f619a
1 changed files with 2 additions and 0 deletions
|
@ -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`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue