mirror of
https://github.com/Erreur32/cheat.git
synced 2025-01-08 22:02:00 +01:00
docker: add 'docker exec'
This commit is contained in:
parent
be2cb6e632
commit
da63c5d27f
1 changed files with 3 additions and 0 deletions
|
@ -4,6 +4,9 @@ docker -d
|
||||||
# start a container with an interactive shell
|
# start a container with an interactive shell
|
||||||
docker run -ti <image_name> /bin/bash
|
docker run -ti <image_name> /bin/bash
|
||||||
|
|
||||||
|
# "shell" into a running container (docker-1.3+)
|
||||||
|
docker exec -ti <container_name> bash
|
||||||
|
|
||||||
# inspect a running container
|
# inspect a running container
|
||||||
docker inspect <container_name> (or <container_id>)
|
docker inspect <container_name> (or <container_id>)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue