mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 13:02:08 +02:00
docker container: add page (#3062)
This commit is contained in:
parent
cce15d0b1a
commit
e92ac25e55
1 changed files with 36 additions and 0 deletions
36
pages/common/docker-containers.md
Normal file
36
pages/common/docker-containers.md
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
# docker container
|
||||||
|
|
||||||
|
> Manage Docker containers.
|
||||||
|
> More information: <https://docs.docker.com/engine/reference/commandline/container/>.
|
||||||
|
|
||||||
|
- List currently running Docker containers:
|
||||||
|
|
||||||
|
`docker container ls`
|
||||||
|
|
||||||
|
- Start one or more stopped containers:
|
||||||
|
|
||||||
|
`docker container start {{container1_name}} {{container2_name}}`
|
||||||
|
|
||||||
|
- Kill one or more running containers:
|
||||||
|
|
||||||
|
`docker container kill {{container_name}}`
|
||||||
|
|
||||||
|
- Stop one or more running containers:
|
||||||
|
|
||||||
|
`docker container stop {{container_name}}`
|
||||||
|
|
||||||
|
- Pause all processes within one or more containers:
|
||||||
|
|
||||||
|
`docker container pause {{container_name}}`
|
||||||
|
|
||||||
|
- Display detailed information on one or more containers:
|
||||||
|
|
||||||
|
`docker container inspect {{container_name}}`
|
||||||
|
|
||||||
|
- Export a container’s filesystem as a tar archive:
|
||||||
|
|
||||||
|
`docker container export {{container_name}}`
|
||||||
|
|
||||||
|
- Create a new image from a container’s changes:
|
||||||
|
|
||||||
|
`docker container commit {{container_name}}`
|
Loading…
Add table
Reference in a new issue