mirror of
https://github.com/containers/podman.git
synced 2025-06-29 15:08:09 +08:00
Add network backend to podman info
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
@ -39,6 +39,7 @@ type HostInfo struct {
|
||||
LogDriver string `json:"logDriver"`
|
||||
MemFree int64 `json:"memFree"`
|
||||
MemTotal int64 `json:"memTotal"`
|
||||
NetworkBackend string `json:"networkBackend"`
|
||||
OCIRuntime *OCIRuntimeInfo `json:"ociRuntime"`
|
||||
OS string `json:"os"`
|
||||
// RemoteSocket returns the UNIX domain socket the Podman service is listening on
|
||||
|
@ -131,6 +131,7 @@ func (r *Runtime) hostInfo() (*define.HostInfo, error) {
|
||||
Kernel: kv,
|
||||
MemFree: mi.MemFree,
|
||||
MemTotal: mi.MemTotal,
|
||||
NetworkBackend: r.config.Network.NetworkBackend,
|
||||
OS: runtime.GOOS,
|
||||
Security: define.SecurityInfo{
|
||||
AppArmorEnabled: apparmor.IsEnabled(),
|
||||
|
Reference in New Issue
Block a user