mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 05:22:09 +02:00
Add Docker
Added commonly used docker commands to list/start/stop containers.
This commit is contained in:
parent
eb44091065
commit
c69b74e048
1 changed files with 20 additions and 0 deletions
20
pages/common/docker.md
Normal file
20
pages/common/docker.md
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
# 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}}`
|
Loading…
Add table
Reference in a new issue