summaryrefslogtreecommitdiff
path: root/cmd/podman/registry/registry.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-10-29 19:31:24 +0100
committerGitHub <noreply@github.com>2020-10-29 19:31:24 +0100
commitc08e82aa2578270271e23ce6e4fa22509744cc96 (patch)
tree594fb5c4fa0fbe0e53e7eabc4301cf3f3b25583b /cmd/podman/registry/registry.go
parent222d8075ab08265c6dce8cf0f26a60c9afb64705 (diff)
parent12647ae33f1ac1c8b41f7dac8574667140c56c20 (diff)
downloadpodman-c08e82aa2578270271e23ce6e4fa22509744cc96.tar.gz
podman-c08e82aa2578270271e23ce6e4fa22509744cc96.tar.bz2
podman-c08e82aa2578270271e23ce6e4fa22509744cc96.zip
Merge pull request #8186 from Luap99/fix-8184
Create the default root API address path
Diffstat (limited to 'cmd/podman/registry/registry.go')
-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"