2019-06-07 11:14:06 +01:00
|
|
|
# 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}}`
|
|
|
|
|
pages*: fix brand and technical names (#12145)
* pages*: fix Python, Java, pacman, apt, *zip*, xz, tar, git, RPM and grep names
* pages*: fix brand and technical names
Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
* fluxctl, gitmoji, in-toto-run, osv-scanner: replace `git` with Git
* bzegrep: enclose egrep with backticks
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
* git-bug: use Git instead of `git`
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
* git-bug: use Git instead of `git`
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
* git-force-clone: use Git instead of `git`
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
* gitwatch: use Git instead of `git`
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
* hub-init: use Git instead of `git`
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
* pages.*: use Linux instead of GNU/Linux
---------
Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
2024-01-30 04:46:32 +00:00
|
|
|
- Export a container's filesystem as a `tar` archive:
|
2019-06-07 11:14:06 +01:00
|
|
|
|
|
|
|
`docker container export {{container_name}}`
|
|
|
|
|
2019-06-26 11:29:06 +01:00
|
|
|
- Create a new image from a container's changes:
|
2019-06-07 11:14:06 +01:00
|
|
|
|
|
|
|
`docker container commit {{container_name}}`
|