mirror of https://github.com/containers/podman.git
Merge pull request #22177 from mheon/fix_22172
Add rootless network command to `podman info`
This commit is contained in:
commit
25ebf10967
|
@ -52,6 +52,8 @@ type HostInfo struct {
|
||||||
OS string `json:"os"`
|
OS string `json:"os"`
|
||||||
// RemoteSocket returns the UNIX domain socket the Podman service is listening on
|
// RemoteSocket returns the UNIX domain socket the Podman service is listening on
|
||||||
RemoteSocket *RemoteSocket `json:"remoteSocket,omitempty"`
|
RemoteSocket *RemoteSocket `json:"remoteSocket,omitempty"`
|
||||||
|
// RootlessNetworkCmd returns the default rootless network command (slirp4netns or pasta)
|
||||||
|
RootlessNetworkCmd string `json:"rootlessNetworkCmd"`
|
||||||
RuntimeInfo map[string]interface{} `json:"runtimeInfo,omitempty"`
|
RuntimeInfo map[string]interface{} `json:"runtimeInfo,omitempty"`
|
||||||
// ServiceIsRemote is true when the podman/libpod service is remote to the client
|
// ServiceIsRemote is true when the podman/libpod service is remote to the client
|
||||||
ServiceIsRemote bool `json:"serviceIsRemote"`
|
ServiceIsRemote bool `json:"serviceIsRemote"`
|
||||||
|
|
|
@ -126,6 +126,7 @@ func (r *Runtime) hostInfo() (*define.HostInfo, error) {
|
||||||
NetworkBackend: r.config.Network.NetworkBackend,
|
NetworkBackend: r.config.Network.NetworkBackend,
|
||||||
NetworkBackendInfo: r.network.NetworkInfo(),
|
NetworkBackendInfo: r.network.NetworkInfo(),
|
||||||
OS: runtime.GOOS,
|
OS: runtime.GOOS,
|
||||||
|
RootlessNetworkCmd: r.config.Network.DefaultRootlessNetworkCmd,
|
||||||
SwapFree: mi.SwapFree,
|
SwapFree: mi.SwapFree,
|
||||||
SwapTotal: mi.SwapTotal,
|
SwapTotal: mi.SwapTotal,
|
||||||
}
|
}
|
||||||
|
|
|
@ -47,6 +47,7 @@ host.cgroupVersion | v[12]
|
||||||
host.networkBackendInfo | .*dns.*package.*
|
host.networkBackendInfo | .*dns.*package.*
|
||||||
host.ociRuntime.path | $expr_path
|
host.ociRuntime.path | $expr_path
|
||||||
host.pasta | .*executable.*package.*
|
host.pasta | .*executable.*package.*
|
||||||
|
host.rootlessNetworkCmd | pasta
|
||||||
store.configFile | $expr_path
|
store.configFile | $expr_path
|
||||||
store.graphDriverName | [a-z0-9]\\\+\\\$
|
store.graphDriverName | [a-z0-9]\\\+\\\$
|
||||||
store.graphRoot | $expr_path
|
store.graphRoot | $expr_path
|
||||||
|
|
Loading…
Reference in New Issue