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

coverage
David (Doojin) Jung 2017-09-28 02:25:00 -07:00 committed by Starbeamrainbowlabs
parent 761f8170f4
commit a6f0dfbf31
1 changed files with 8 additions and 8 deletions

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}}`