1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 20:22:09 +02:00

docker: update docker commands to conform to Docker 1.13 (#1505)

This commit is contained in:
David (Doojin) Jung 2017-09-28 02:25:00 -07:00 committed by Starbeamrainbowlabs
parent 761f8170f4
commit a6f0dfbf31

View file

@ -4,28 +4,28 @@
- List currently running docker containers: - List currently running docker containers:
`docker ps` `docker container ls`
- List all docker containers (running and stopped): - List all docker containers (running and stopped):
`docker ps -a` `docker container ls -a`
- Start a container: - Start a container:
`docker start {{container}}` `docker container start {{container}}`
- Stop a container: - Stop a container:
`docker stop {{container}}` `docker container stop {{container}}`
- Start a container from an image and get a shell inside of it: - Start a container from an image and get a shell inside of it:
`docker run -it {{image}} bash` `docker container run -it {{image}} bash`
- Run a command inside of an already running container: - Run a command inside of an already running container:
`docker exec {{container}} {{command}}` `docker container exec {{container}} {{command}}`
- Remove a container: - Remove a stopped container:
`docker rm {{container}}` `docker container rm {{container}}`