github.com/kelda-inc/moby@v1.13.1/docs/reference/commandline/container_prune.md (about) 1 --- 2 title: "container prune" 3 description: "Remove all stopped containers" 4 keywords: container, prune, delete, remove 5 --- 6 7 <!-- This file is maintained within the docker/docker Github 8 repository at https://github.com/docker/docker/. Make all 9 pull requests against that repo. If you see this file in 10 another repository, consider it read-only there, as it will 11 periodically be overwritten by the definitive file. Pull 12 requests which include edits to this file in other repositories 13 will be rejected. 14 --> 15 16 # container prune 17 18 ```markdown 19 Usage: docker container prune [OPTIONS] 20 21 Remove all stopped containers 22 23 Options: 24 -f, --force Do not prompt for confirmation 25 --help Print usage 26 ``` 27 28 ## Examples 29 30 ```bash 31 $ docker container prune 32 WARNING! This will remove all stopped containers. 33 Are you sure you want to continue? [y/N] y 34 Deleted Containers: 35 4a7f7eebae0f63178aff7eb0aa39cd3f0627a203ab2df258c1a00b456cf20063 36 f98f9c2aa1eaf727e4ec9c0283bc7d4aa4762fbdba7f26191f26c97f64090360 37 38 Total reclaimed space: 212 B 39 ``` 40 41 ## Related information 42 43 * [system df](system_df.md) 44 * [volume prune](volume_prune.md) 45 * [image prune](image_prune.md) 46 * [network prune](network_prune.md) 47 * [system prune](system_prune.md)