diff --git a/pkg/minikube/machine/advice.go b/pkg/minikube/machine/advice.go index 0f802567ae..268ab56788 100644 --- a/pkg/minikube/machine/advice.go +++ b/pkg/minikube/machine/advice.go @@ -39,10 +39,12 @@ func MaybeDisplayAdvice(err error, driver string) { if errors.Is(err, oci.ErrExitedUnexpectedly) || errors.Is(err, oci.ErrDaemonInfo) { out.T(style.Tip, "If you are still interested to make {{.driver_name}} driver work. The following suggestions might help you get passed this issue:", out.V{"driver_name": driver}) - out.T(style.Empty, ` + if driver == oci.Docker || driver == oci.Podman { + out.T(style.Empty, ` - Prune unused {{.driver_name}} images, volumes, networks and abandoned containers. - docker system prune --volumes`, out.V{"driver_name": driver}) + {{.driver_name}} system prune --volumes`, out.V{"driver_name": driver}) + } out.T(style.Empty, ` - Restart your {{.driver_name}} service`, out.V{"driver_name": driver}) if runtime.GOOS != "linux" {