github.com/sld880311/docker@v0.0.0-20200524143708-d5593973a475/docs/reference/commandline/container.md (about) 1 2 --- 3 title: "container" 4 description: "The container command description and usage" 5 keywords: "container" 6 --- 7 8 <!-- This file is maintained within the docker/docker Github 9 repository at https://github.com/docker/docker/. Make all 10 pull requests against that repo. If you see this file in 11 another repository, consider it read-only there, as it will 12 periodically be overwritten by the definitive file. Pull 13 requests which include edits to this file in other repositories 14 will be rejected. 15 --> 16 17 # container 18 19 ```markdown 20 Usage: docker container COMMAND 21 22 Manage containers 23 24 Options: 25 --help Print usage 26 27 Commands: 28 attach Attach to a running container 29 commit Create a new image from a container's changes 30 cp Copy files/folders between a container and the local filesystem 31 create Create a new container 32 diff Inspect changes to files or directories on a container's filesystem 33 exec Run a command in a running container 34 export Export a container's filesystem as a tar archive 35 inspect Display detailed information on one or more containers 36 kill Kill one or more running containers 37 logs Fetch the logs of a container 38 ls List containers 39 pause Pause all processes within one or more containers 40 port List port mappings or a specific mapping for the container 41 prune Remove all stopped containers 42 rename Rename a container 43 restart Restart one or more containers 44 rm Remove one or more containers 45 run Run a command in a new container 46 start Start one or more stopped containers 47 stats Display a live stream of container(s) resource usage statistics 48 stop Stop one or more running containers 49 top Display the running processes of a container 50 unpause Unpause all processes within one or more containers 51 update Update configuration of one or more containers 52 wait Block until one or more containers stop, then print their exit codes 53 54 Run 'docker container COMMAND --help' for more information on a command. 55 56 ``` 57 58 ## Description 59 60 Manage containers. 61