cmd/podman, pkg/domain/infra: sockets should live in /var/run on FreeBSD

The /var/run directory is the preferred location for unix domain
sockets.

[NO NEW TESTS NEEDED]

Signed-off-by: Doug Rabson <dfr@rabson.org>
This commit is contained in:
Doug Rabson
2022-11-18 15:17:15 +00:00
parent e3f2a97d1f
commit 43b9426fc6
6 changed files with 20 additions and 4 deletions

View File

@ -12,9 +12,6 @@ import (
"github.com/spf13/cobra"
)
// 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

View File

@ -0,0 +1,7 @@
//go:build !freebsd
// +build !freebsd
package registry
// DefaultRootAPIPath is the default path of the REST socket
const DefaultRootAPIPath = "/run/podman/podman.sock"

View File

@ -0,0 +1,4 @@
package registry
// DefaultRootAPIPath is the default path of the REST socket
const DefaultRootAPIPath = "/var/run/podman/podman.sock"