tldr/pages/common/docker.md
2016-01-20 09:09:54 -08:00

467 B

docker

Manage Docker containers and images.

  • List of 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}}