returnregistry.State{Error:err,Installed:true,Healthy:false,Fix:"Add your user to the 'docker' group: 'sudo usermod -aG docker $USER && newgrp docker'",Doc:"https://docs.docker.com/engine/install/linux-postinstall/"}
returnregistry.State{Error:err,Installed:true,Running:true,Healthy:false,Fix:"Add your user to the 'docker' group: 'sudo usermod -aG docker $USER && newgrp docker'",Doc:"https://docs.docker.com/engine/install/linux-postinstall/"}
}
ifstrings.Contains(stderr,"/pipe/docker_engine: The system cannot find the file specified.")&&runtime.GOOS=="windows"{
returnregistry.State{Error:err,Installed:true,Healthy:false,Fix:"Start the Docker service. If Docker is already running, you may need to reset Docker to factory settings with: Settings > Reset.",Doc:"https://github.com/docker/for-win/issues/1825#issuecomment-450501157"}
returnregistry.State{Error:err,Installed:true,Running:false,Healthy:false,Fix:"Start the Docker service. If Docker is already running, you may need to reset Docker to factory settings with: Settings > Reset.",Doc:"https://github.com/docker/for-win/issues/1825#issuecomment-450501157"}
}
ifstrings.Contains(stderr,"Cannot connect")||strings.Contains(stderr,"refused")||strings.Contains(stderr,"Is the docker daemon running")||strings.Contains(stderr,"docker daemon is not running"){
returnregistry.State{Error:err,Installed:true,Healthy:false,Fix:"Start the Docker service",Doc:docURL}
returnregistry.State{Error:err,Installed:true,Running:false,Healthy:false,Fix:"Start the Docker service",Doc:docURL}
}
// We don't have good advice, but at least we can provide a good error message
returnregistry.State{Installed:true,Healthy:true,Error:fmt.Errorf("hyperkit version check failed:\n%v",err),Doc:docURL}
returnregistry.State{Installed:true,Running:true,Healthy:true,Error:fmt.Errorf("hyperkit version check failed:\n%v",err),Doc:docURL}
}
if!isNew{
returnregistry.State{Installed:true,Healthy:true,Error:fmt.Errorf("the installed hyperkit version (0.%s) is older than the minimum recommended version (%s)",currentVersion,minimumVersion),Fix:"Run 'brew upgrade hyperkit'",Doc:docURL}
returnregistry.State{Installed:true,Running:true,Healthy:true,Error:fmt.Errorf("the installed hyperkit version (0.%s) is older than the minimum recommended version (%s)",currentVersion,minimumVersion),Fix:"Run 'brew upgrade hyperkit'",Doc:docURL}
returnregistry.State{Error:err,Installed:true,Healthy:false,Fix:"Cant verify minimum required version for podman . See podman website for installation guide.",Doc:"https://podman.io/getting-started/installation.html"}
returnregistry.State{Error:err,Installed:true,Running:true,Healthy:false,Fix:"Cant verify minimum required version for podman . See podman website for installation guide.",Doc:"https://podman.io/getting-started/installation.html"}