podman system reset removed machines incorrectly

podman system reset did not clean up machines fully, leaving some config
files, and breaking machines. Now it removes all machines files fully.

Signed-off-by: Ashley Cui <acui@redhat.com>
This commit is contained in:
Ashley Cui
2022-04-27 16:56:48 -04:00
parent 698cb730a1
commit 80744c6441
19 changed files with 230 additions and 20 deletions

View File

@ -7,7 +7,7 @@ podman\-system\-reset - Reset storage back to initial state
**podman system reset** [*options*]
## DESCRIPTION
**podman system reset** removes all pods, containers, images, networks and volumes.
**podman system reset** removes all pods, containers, images, networks and volumes, and machines.
This command must be run **before** changing any of the following fields in the
`containers.conf` or `storage.conf` files: `driver`, `static_dir`, `tmp_dir`
@ -36,6 +36,7 @@ WARNING! This will remove:
- all images
- all networks
- all build cache
- all machines
Are you sure you want to continue? [y/N] y
```