Skip to content

Commit

Permalink
Adding warning for uninstall all while container runtime not running (#…
Browse files Browse the repository at this point in the history
…1310)

Signed-off-by: Vishal Yadav <[email protected]>
Co-authored-by: Mukundan Sundararajan <[email protected]>
Co-authored-by: Shubham Sharma <[email protected]>
  • Loading branch information
3 people authored Jun 20, 2023
1 parent 7da8bd7 commit a4f924f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/standalone/uninstall.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ func Uninstall(uninstallAll bool, dockerNetwork string, containerRuntime string,
containerRuntimeAvailable = utils.IsContainerRuntimeInstalled(containerRuntime)
if containerRuntimeAvailable {
containerErrs = removeContainers(uninstallPlacementContainer, uninstallAll, dockerNetwork, runtimeCmd)
} else if uninstallPlacementContainer || uninstallAll {
print.WarningStatusEvent(os.Stdout, "WARNING: could not delete supporting containers as container runtime is not installed or running")
}

if uninstallAll {
Expand Down

0 comments on commit a4f924f

Please sign in to comment.