mirror of
https://github.com/Erreur32/cheat.git
synced 2024-12-22 13:42:11 +01:00
Update docker
This commit is contained in:
parent
6a2eda80d4
commit
6670785a2a
1 changed files with 4 additions and 1 deletions
|
@ -19,6 +19,9 @@ docker inspect --format {{.State.Pid}} <container_name_or_ID>
|
||||||
# http://nathanleclaire.com/blog/2014/07/12/10-docker-tips-and-tricks-that-will-make-you-sing-a-whale-song-of-joy/
|
# http://nathanleclaire.com/blog/2014/07/12/10-docker-tips-and-tricks-that-will-make-you-sing-a-whale-song-of-joy/
|
||||||
docker inspect --format='{{json .Volumes}}' <container_id> | python -mjson.tool
|
docker inspect --format='{{json .Volumes}}' <container_id> | python -mjson.tool
|
||||||
|
|
||||||
|
# Copy files/folders between a container and your host
|
||||||
|
docker cp foo.txt mycontainer:/foo.txt
|
||||||
|
|
||||||
# list currently running containers
|
# list currently running containers
|
||||||
docker ps
|
docker ps
|
||||||
|
|
||||||
|
@ -26,4 +29,4 @@ docker ps
|
||||||
docker ps -a
|
docker ps -a
|
||||||
|
|
||||||
# list all images
|
# list all images
|
||||||
docker images
|
docker images
|
||||||
|
|
Loading…
Reference in a new issue