Merge pull request #8915 from rhatdan/remote
Improve error message when the the podman service is not enabled
This commit is contained in:
commit
41613bdb96
|
|
@ -158,7 +158,7 @@ func persistentPreRunE(cmd *cobra.Command, args []string) error {
|
||||||
|
|
||||||
// Prep the engines
|
// Prep the engines
|
||||||
if _, err := registry.NewImageEngine(cmd, args); err != nil {
|
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 {
|
if _, err := registry.NewContainerEngine(cmd, args); err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue