mirror of
https://github.com/containers/podman.git
synced 2025-07-15 03:02:52 +08:00
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>
This commit is contained in:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user