1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-11-02 05:17:58 +01:00
tldr/pages/common/docker.md
2015-12-29 11:14:13 -05:00

550 B

docker

Docker allows you to package an application with all of its dependencies into a standardized unit for software development.

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