diff options
author | Paul Holzinger <pholzing@redhat.com> | 2022-02-02 18:17:23 +0100 |
---|---|---|
committer | Paul Holzinger <pholzing@redhat.com> | 2022-02-03 13:14:07 +0100 |
commit | 55c4a1468b8738a5711d213cfe7c172b463ecd24 (patch) | |
tree | 69bc9576f3ca2d8f41a8b61c9bf23b0c725fa9fd /cmd/podman/system/reset.go | |
parent | f2263fade4aef30fd619b648e4d1ca4aaf6bd506 (diff) | |
download | podman-55c4a1468b8738a5711d213cfe7c172b463ecd24.tar.gz podman-55c4a1468b8738a5711d213cfe7c172b463ecd24.tar.bz2 podman-55c4a1468b8738a5711d213cfe7c172b463ecd24.zip |
system prune: remove all networks
podman system prune should also remove all networks. When we want to
users to migrate to the new network stack we recommend to run podman
system reset. However this did not remove networks and if there were
still networks around we would continue to use cni since this was
considered an old system.
There is one exception for the default network. It should not be removed
since this could cause other issues when it no longer exists. The
network backend detection logic ignores the default network so this is
fine.
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Diffstat (limited to 'cmd/podman/system/reset.go')
-rw-r--r-- | cmd/podman/system/reset.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/podman/system/reset.go b/cmd/podman/system/reset.go index 85ee8557a..07904faaa 100644 --- a/cmd/podman/system/reset.go +++ b/cmd/podman/system/reset.go @@ -21,7 +21,7 @@ import ( var ( systemResetDescription = `Reset podman storage back to default state" - All containers will be stopped and removed, and all images, volumes and container content will be removed. + All containers will be stopped and removed, and all images, volumes, networks and container content will be removed. ` systemResetCommand = &cobra.Command{ Annotations: map[string]string{registry.EngineMode: registry.ABIMode}, @@ -55,11 +55,11 @@ func reset(cmd *cobra.Command, args []string) { // Prompt for confirmation if --force is not set if !forceFlag { reader := bufio.NewReader(os.Stdin) - fmt.Println(` -WARNING! This will remove: + fmt.Println(`WARNING! This will remove: - all containers - all pods - all images + - all networks - all build cache`) if len(listCtn) > 0 { fmt.Println(`WARNING! The following external containers will be purged:`) |