tldr/pages/common/docker.md
Waldir Pimenta 45d9ef5b6a docker: minor tweak to first description
change "List" from a noun to a verb, to match the project's guidelines.
2017-04-27 23:55:32 +01:00

524 B

docker

Manage Docker containers and images.

  • List currently running docker containers:

docker ps

  • List all docker containers (running and stopped):

docker ps -a

  • Start a container:

docker start {{container}}

  • Stop a container:

docker stop {{container}}

  • Start a container from an image and get a shell inside of it:

docker run -it {{image}} bash

  • Run a command inside of an already running container:

docker exec {{container}} {{command}}

  • Remove a container:

docker rm {{container}}