summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAshley Cui <acui@redhat.com>2021-08-10 16:55:41 -0400
committerAshley Cui <acui@redhat.com>2021-08-11 09:07:24 -0400
commit2e3ba9cd996b3712e04f5a2f8682cd60bec37feb (patch)
tree36c108d829dce80741d792c91db4ecd0f631f90b
parent8b14cd84ced46263f378c6090ccb61616810eb9e (diff)
downloadpodman-2e3ba9cd996b3712e04f5a2f8682cd60bec37feb.tar.gz
podman-2e3ba9cd996b3712e04f5a2f8682cd60bec37feb.tar.bz2
podman-2e3ba9cd996b3712e04f5a2f8682cd60bec37feb.zip
Change connection error to be helpful for machine users
If a podman-remote connection fails, remind the user to check their linux system and podman machine vm Signed-off-by: Ashley Cui <acui@redhat.com>
-rw-r--r--pkg/bindings/connection.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/bindings/connection.go b/pkg/bindings/connection.go
index 62b1655ac..cd118cbb2 100644
--- a/pkg/bindings/connection.go
+++ b/pkg/bindings/connection.go
@@ -117,7 +117,7 @@ func NewConnectionWithIdentity(ctx context.Context, uri string, identity string)
ctx = context.WithValue(ctx, clientKey, &connection)
if err := pingNewConnection(ctx); err != nil {
- return nil, errors.Wrap(err, "cannot connect to the Podman socket, please verify that Podman REST API service is running")
+ return nil, errors.Wrap(err, "cannot connect to the Podman socket, please verify the connection to the Linux system, or use `podman machine` to create/start a Linux VM.")
}
return ctx, nil
}