Skip to content

Commit

Permalink
Merge pull request #22177 from mheon/fix_22172
Browse files Browse the repository at this point in the history
Add rootless network command to `podman info`
  • Loading branch information
openshift-merge-bot[bot] authored Mar 26, 2024
2 parents 5c39ddc + b56331c commit 25ebf10
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions libpod/define/info.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,10 @@ type HostInfo struct {
OCIRuntime *OCIRuntimeInfo `json:"ociRuntime"`
OS string `json:"os"`
// RemoteSocket returns the UNIX domain socket the Podman service is listening on
RemoteSocket *RemoteSocket `json:"remoteSocket,omitempty"`
RuntimeInfo map[string]interface{} `json:"runtimeInfo,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"`
// ServiceIsRemote is true when the podman/libpod service is remote to the client
ServiceIsRemote bool `json:"serviceIsRemote"`
Security SecurityInfo `json:"security"`
Expand Down
1 change: 1 addition & 0 deletions libpod/info.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ func (r *Runtime) hostInfo() (*define.HostInfo, error) {
NetworkBackend: r.config.Network.NetworkBackend,
NetworkBackendInfo: r.network.NetworkInfo(),
OS: runtime.GOOS,
RootlessNetworkCmd: r.config.Network.DefaultRootlessNetworkCmd,
SwapFree: mi.SwapFree,
SwapTotal: mi.SwapTotal,
}
Expand Down
1 change: 1 addition & 0 deletions test/system/005-info.bats
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ host.cgroupVersion | v[12]
host.networkBackendInfo | .*dns.*package.*
host.ociRuntime.path | $expr_path
host.pasta | .*executable.*package.*
host.rootlessNetworkCmd | pasta
store.configFile | $expr_path
store.graphDriverName | [a-z0-9]\\\+\\\$
store.graphRoot | $expr_path
Expand Down

0 comments on commit 25ebf10

Please sign in to comment.