From 8ad40a85d5eab3eea888708e242f32354e799822 Mon Sep 17 00:00:00 2001 From: Jhon Honce Date: Mon, 10 May 2021 13:58:20 -0700 Subject: Add host.serviceIsRemote to podman info results Developers asked for a deterministic field to verify if podman is running via API or linked directly to libpod library. $ podman info --format '{{.Host.ServiceIsRemote}}' false $ podman-remote info --format '{{.Host.ServiceIsRemote}}' true $ podman --remote info --format '{{.Host.ServiceIsRemote}}' true * docs/conf.py formatted via black Signed-off-by: Jhon Honce --- cmd/podman/system/info.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cmd/podman') diff --git a/cmd/podman/system/info.go b/cmd/podman/system/info.go index afd5b3a34..44be4ccec 100644 --- a/cmd/podman/system/info.go +++ b/cmd/podman/system/info.go @@ -78,6 +78,8 @@ func info(cmd *cobra.Command, args []string) error { return err } + info.Host.ServiceIsRemote = registry.IsRemote() + switch { case report.IsJSON(inFormat): b, err := json.MarshalIndent(info, "", " ") -- cgit v1.2.3-54-g00ecf