2017-03-27 05:10:58 -04:00
|
|
|
|
|
|
|
---
|
|
|
|
title: "container"
|
|
|
|
description: "The container command description and usage"
|
|
|
|
keywords: "container"
|
|
|
|
---
|
|
|
|
|
|
|
|
# container
|
|
|
|
|
|
|
|
```markdown
|
|
|
|
Usage: docker container COMMAND
|
|
|
|
|
|
|
|
Manage containers
|
|
|
|
|
|
|
|
Options:
|
|
|
|
--help Print usage
|
|
|
|
|
|
|
|
Commands:
|
|
|
|
attach Attach to a running container
|
|
|
|
commit Create a new image from a container's changes
|
|
|
|
cp Copy files/folders between a container and the local filesystem
|
|
|
|
create Create a new container
|
|
|
|
diff Inspect changes to files or directories on a container's filesystem
|
2022-03-29 17:54:35 -04:00
|
|
|
exec Execute a command in a running container
|
2017-03-27 05:10:58 -04:00
|
|
|
export Export a container's filesystem as a tar archive
|
|
|
|
inspect Display detailed information on one or more containers
|
|
|
|
kill Kill one or more running containers
|
|
|
|
logs Fetch the logs of a container
|
|
|
|
ls List containers
|
|
|
|
pause Pause all processes within one or more containers
|
|
|
|
port List port mappings or a specific mapping for the container
|
|
|
|
prune Remove all stopped containers
|
|
|
|
rename Rename a container
|
|
|
|
restart Restart one or more containers
|
|
|
|
rm Remove one or more containers
|
2022-03-29 17:58:36 -04:00
|
|
|
run Create and run a new container from an image
|
2017-03-27 05:10:58 -04:00
|
|
|
start Start one or more stopped containers
|
|
|
|
stats Display a live stream of container(s) resource usage statistics
|
|
|
|
stop Stop one or more running containers
|
|
|
|
top Display the running processes of a container
|
|
|
|
unpause Unpause all processes within one or more containers
|
|
|
|
update Update configuration of one or more containers
|
|
|
|
wait Block until one or more containers stop, then print their exit codes
|
|
|
|
|
|
|
|
Run 'docker container COMMAND --help' for more information on a command.
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
## Description
|
|
|
|
|
|
|
|
Manage containers.
|
|
|
|
|