tldr/pages/common/docker-containers.md

37 lines
882 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# 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 containers filesystem as a tar archive:
`docker container export {{container_name}}`
- Create a new image from a containers changes:
`docker container commit {{container_name}}`