Merge pull request #8915 from rhatdan/remote

Improve error message when the the podman service is not enabled
This commit is contained in:
OpenShift Merge Robot 2021-01-10 11:49:46 -05:00 committed by GitHub
commit 41613bdb96
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -158,7 +158,7 @@ func persistentPreRunE(cmd *cobra.Command, args []string) error {
// Prep the engines
if _, err := registry.NewImageEngine(cmd, args); err != nil {
return err
return errors.Wrapf(err, "Cannot connect to the Podman socket, make sure there is a Podman REST API service running.")
}
if _, err := registry.NewContainerEngine(cmd, args); err != nil {
return err