diff --git a/docs/source/markdown/podman-machine-inspect.1.md b/docs/source/markdown/podman-machine-inspect.1.md index 56c3233bf6..f8b5bd8ffa 100644 --- a/docs/source/markdown/podman-machine-inspect.1.md +++ b/docs/source/markdown/podman-machine-inspect.1.md @@ -23,18 +23,19 @@ Rootless only. Print results with a Go template. -| **Placeholder** | **Description** | -| ------------------- | ----------------------------------------------------- | -| .ConfigPath ... | Machine configuration file location | -| .ConnectionInfo ... | Machine connection information | -| .Created | Machine creation time (string, ISO3601) | -| .Image ... | Machine image config | -| .LastUp | Time when machine was last booted | -| .Name | Name of the machine | -| .Resources ... | Resources used by the machine | -| .SSHConfig ... | SSH configuration info for communitating with machine | -| .State ... | Machine state | -| .UserModeNetworking | Whether this machine uses user-mode networking | +| **Placeholder** | **Description** | +| ------------------- | --------------------------------------------------------------------- | +| .ConfigPath ... | Machine configuration file location | +| .ConnectionInfo ... | Machine connection information | +| .Created | Machine creation time (string, ISO3601) | +| .Image ... | Machine image config | +| .LastUp | Time when machine was last booted | +| .Name | Name of the machine | +| .Resources ... | Resources used by the machine | +| .Rootful | Whether the machine prefers rootful or rootless container execution | +| .SSHConfig ... | SSH configuration info for communitating with machine | +| .State ... | Machine state | +| .UserModeNetworking | Whether this machine uses user-mode networking | #### **--help** diff --git a/pkg/machine/applehv/machine.go b/pkg/machine/applehv/machine.go index 28c27231bf..f53f03cf9a 100644 --- a/pkg/machine/applehv/machine.go +++ b/pkg/machine/applehv/machine.go @@ -317,6 +317,7 @@ func (m *MacMachine) Inspect() (*machine.InspectInfo, error) { }, SSHConfig: m.SSHConfig, State: vmState, + Rootful: m.Rootful, } return &ii, nil } diff --git a/pkg/machine/config.go b/pkg/machine/config.go index 5fd51a899c..b64511af29 100644 --- a/pkg/machine/config.go +++ b/pkg/machine/config.go @@ -151,6 +151,7 @@ type InspectInfo struct { SSHConfig SSHConfig State Status UserModeNetworking bool + Rootful bool } func (rc RemoteConnectionType) MakeSSHURL(host, path, port, userName string) url.URL { diff --git a/pkg/machine/hyperv/machine.go b/pkg/machine/hyperv/machine.go index 4919f5bd31..3bf71f17e2 100644 --- a/pkg/machine/hyperv/machine.go +++ b/pkg/machine/hyperv/machine.go @@ -303,6 +303,7 @@ func (m *HyperVMachine) Inspect() (*machine.InspectInfo, error) { }, SSHConfig: m.SSHConfig, State: vm.State().String(), + Rootful: m.Rootful, }, nil } diff --git a/pkg/machine/qemu/machine.go b/pkg/machine/qemu/machine.go index 1b623ac4cf..8082f3b9d8 100644 --- a/pkg/machine/qemu/machine.go +++ b/pkg/machine/qemu/machine.go @@ -1596,6 +1596,7 @@ func (v *MachineVM) Inspect() (*machine.InspectInfo, error) { SSHConfig: v.SSHConfig, State: state, UserModeNetworking: true, // always true + Rootful: v.Rootful, }, nil } diff --git a/pkg/machine/wsl/machine.go b/pkg/machine/wsl/machine.go index 9182fbd3b7..163493f60d 100644 --- a/pkg/machine/wsl/machine.go +++ b/pkg/machine/wsl/machine.go @@ -1745,6 +1745,7 @@ func (v *MachineVM) Inspect() (*machine.InspectInfo, error) { SSHConfig: v.SSHConfig, State: state, UserModeNetworking: v.UserModeNetworking, + Rootful: v.Rootful, }, nil }