mirror of
https://github.com/containers/podman.git
synced 2025-10-19 04:03:23 +08:00
Merge pull request #4979 from rpjday/rpjday/system_prune
docs: fix system-prune markdown; reword for clarity
This commit is contained in:
@ -9,9 +9,9 @@ podman\-system\-prune - Remove all unused container, image and volume data
|
|||||||
## DESCRIPTION
|
## DESCRIPTION
|
||||||
**podman system prune** removes all unused containers (both dangling and unreferenced), pods and optionally, volumes from local storage.
|
**podman system prune** removes all unused containers (both dangling and unreferenced), pods and optionally, volumes from local storage.
|
||||||
|
|
||||||
With the `all` option, you can delete all unused images. Unused images are dangling images as well as any image that does not have any containers based on it.
|
With the **--all** option, you can delete all unused images. Unused images are dangling images as well as any image that does not have any containers based on it.
|
||||||
|
|
||||||
By default, volumes are not removed to prevent important data from being deleted if there is currently no container using the volume. Use the --volumes flag when running the command to prune volumes as well.
|
By default, volumes are not removed to prevent important data from being deleted if there is currently no container using the volume. Use the **--volumes** flag when running the command to prune volumes as well.
|
||||||
|
|
||||||
## OPTIONS
|
## OPTIONS
|
||||||
**--all**, **-a**
|
**--all**, **-a**
|
||||||
@ -28,7 +28,7 @@ Print usage statement
|
|||||||
|
|
||||||
**--volumes**
|
**--volumes**
|
||||||
|
|
||||||
Prune volumes not used by at least one container
|
Prune volumes currently unused by any container
|
||||||
|
|
||||||
## SEE ALSO
|
## SEE ALSO
|
||||||
podman(1), podman-image-prune(1), podman-container-prune(1), podman-pod-prune(1), podman-volume-prune(1)
|
podman(1), podman-image-prune(1), podman-container-prune(1), podman-pod-prune(1), podman-volume-prune(1)
|
||||||
|
Reference in New Issue
Block a user