aboutsummaryrefslogtreecommitdiff
path: root/cmd/podman/system
diff options
context:
space:
mode:
authorBoaz Shuster <boaz.shuster.github@gmail.com>2022-10-06 14:08:01 +0300
committerBoaz Shuster <boaz.shuster.github@gmail.com>2022-10-06 14:47:03 +0300
commitd4f622da7d81a9e92fc6c67fa5eec3c8e3172b93 (patch)
tree0cb08d281efae1442fe03d60df870124b6eb60c1 /cmd/podman/system
parent13a1c55d3f0d0cb9a34e865844278e935337cd1b (diff)
downloadpodman-d4f622da7d81a9e92fc6c67fa5eec3c8e3172b93.tar.gz
podman-d4f622da7d81a9e92fc6c67fa5eec3c8e3172b93.tar.bz2
podman-d4f622da7d81a9e92fc6c67fa5eec3c8e3172b93.zip
Return error in podman system service if URI scheme is not unix/tcp
Signed-off-by: Boaz Shuster <boaz.shuster.github@gmail.com>
Diffstat (limited to 'cmd/podman/system')
-rw-r--r--cmd/podman/system/service_abi.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/system/service_abi.go b/cmd/podman/system/service_abi.go
index 68ac8902b..82419ff1a 100644
--- a/cmd/podman/system/service_abi.go
+++ b/cmd/podman/system/service_abi.go
@@ -89,7 +89,7 @@ func restService(flags *pflag.FlagSet, cfg *entities.PodmanConfig, opts entities
return fmt.Errorf("unable to create socket %v: %w", host, err)
}
default:
- logrus.Debugf("Attempting API Service endpoint scheme %q", uri.Scheme)
+ return fmt.Errorf("API Service endpoint scheme %q is not supported. Try tcp://%s or unix:/%s", uri.Scheme, opts.URI, opts.URI)
}
libpodRuntime.SetRemoteURI(uri.String())
}