github.com/yogeshlonkar/moby@v1.13.2-0.20201203103638-c0b64beaea94/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 ## Description 29 30 Removes all stopped containers. 31 32 ## Examples 33 34 ### Prune containers 35 36 ```bash 37 $ docker container prune 38 WARNING! This will remove all stopped containers. 39 Are you sure you want to continue? [y/N] y 40 Deleted Containers: 41 4a7f7eebae0f63178aff7eb0aa39cd3f0627a203ab2df258c1a00b456cf20063 42 f98f9c2aa1eaf727e4ec9c0283bc7d4aa4762fbdba7f26191f26c97f64090360 43 44 Total reclaimed space: 212 B 45 ``` 46 47 ## Related commands 48 49 * [system df](system_df.md) 50 * [volume prune](volume_prune.md) 51 * [image prune](image_prune.md) 52 * [network prune](network_prune.md) 53 * [system prune](system_prune.md)