summaryrefslogtreecommitdiff
path: root/cmd/podman/registry
diff options
context:
space:
mode:
authorPaul Holzinger <paul.holzinger@web.de>2020-10-29 16:25:05 +0100
committerPaul Holzinger <paul.holzinger@web.de>2020-10-29 16:46:27 +0100
commit12647ae33f1ac1c8b41f7dac8574667140c56c20 (patch)
treebf965b84044cd21eaf15d49d369170d8da6f5220 /cmd/podman/registry
parentfdd32604cf75fc310afca209adad15b1bcecfef7 (diff)
downloadpodman-12647ae33f1ac1c8b41f7dac8574667140c56c20.tar.gz
podman-12647ae33f1ac1c8b41f7dac8574667140c56c20.tar.bz2
podman-12647ae33f1ac1c8b41f7dac8574667140c56c20.zip
Create the default root API address path
Fixes #8184 Signed-off-by: Paul Holzinger <paul.holzinger@web.de>
Diffstat (limited to 'cmd/podman/registry')
-rw-r--r--cmd/podman/registry/registry.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/cmd/podman/registry/registry.go b/cmd/podman/registry/registry.go
index 1e439613c..9c0b290e7 100644
--- a/cmd/podman/registry/registry.go
+++ b/cmd/podman/registry/registry.go
@@ -12,8 +12,11 @@ import (
"github.com/spf13/cobra"
)
-// DefaultRootAPIAddress is the default address of the REST socket
-const DefaultRootAPIAddress = "unix:/run/podman/podman.sock"
+// DefaultRootAPIPath is the default path of the REST socket
+const DefaultRootAPIPath = "/run/podman/podman.sock"
+
+// DefaultRootAPIAddress is the default address of the REST socket with unix: prefix
+const DefaultRootAPIAddress = "unix:" + DefaultRootAPIPath
// DefaultVarlinkAddress is the default address of the varlink socket
const DefaultVarlinkAddress = "unix:/run/podman/io.podman"