summaryrefslogtreecommitdiff
path: root/pkg/domain
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2021-04-19 08:46:37 -0400
committerDaniel J Walsh <dwalsh@redhat.com>2021-04-20 15:56:45 -0400
commit659dc7843c560c9386fbc3e54ad860c3f2ef2940 (patch)
tree90fbd03d2c07aaa11d8a86c5c03338824d982a6d /pkg/domain
parent2a32fc3e403e4b70fb68fda564cbdf33b7dd5326 (diff)
downloadpodman-659dc7843c560c9386fbc3e54ad860c3f2ef2940.tar.gz
podman-659dc7843c560c9386fbc3e54ad860c3f2ef2940.tar.bz2
podman-659dc7843c560c9386fbc3e54ad860c3f2ef2940.zip
podman-remote should show podman.sock info
Currently podman-remote info does not show socket information. Fixes: https://github.com/containers/podman/issues/10077 Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'pkg/domain')
-rw-r--r--pkg/domain/infra/abi/system.go10
1 files changed, 2 insertions, 8 deletions
diff --git a/pkg/domain/infra/abi/system.go b/pkg/domain/infra/abi/system.go
index f87f9e370..6319c1ab1 100644
--- a/pkg/domain/infra/abi/system.go
+++ b/pkg/domain/infra/abi/system.go
@@ -32,17 +32,11 @@ func (ic *ContainerEngine) Info(ctx context.Context) (*define.Info, error) {
if err != nil {
return nil, err
}
- xdg, err := util.GetRuntimeDir()
+
+ socketPath, err := util.SocketPath()
if err != nil {
return nil, err
}
- if len(xdg) == 0 {
- // If no xdg is returned, assume root socket
- xdg = "/run"
- }
-
- // Glue the socket path together
- socketPath := filepath.Join(xdg, "podman", "podman.sock")
rs := define.RemoteSocket{
Path: socketPath,
Exists: false,