mirror of
https://github.com/containers/podman.git
synced 2025-06-20 17:13:43 +08:00
Merge pull request #8915 from rhatdan/remote
Improve error message when the the podman service is not enabled
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user