diff options
author | Brent Baude <bbaude@redhat.com> | 2022-04-01 15:31:13 -0500 |
---|---|---|
committer | Brent Baude <bbaude@redhat.com> | 2022-04-12 15:51:39 -0500 |
commit | 8710197e8592e9726d98d11d017d1c79ab07415b (patch) | |
tree | d3e1788912e4b1ac7d58e72d1a56cf0cbaf6a143 /pkg/machine/wsl | |
parent | db7cd88c6781c3d42376f02b5b1547c466c45d3e (diff) | |
download | podman-8710197e8592e9726d98d11d017d1c79ab07415b.tar.gz podman-8710197e8592e9726d98d11d017d1c79ab07415b.tar.bz2 podman-8710197e8592e9726d98d11d017d1c79ab07415b.zip |
Introduce machine inspect
Allow users to inspect their podman virtual machines. This will be
helpful for debug and development alike, because more details about the
machine can be collected.
Signed-off-by: Brent Baude <bbaude@redhat.com>
[NO NEW TESTS NEEDED]
Signed-off-by: Brent Baude <bbaude@redhat.com>
Diffstat (limited to 'pkg/machine/wsl')
-rw-r--r-- | pkg/machine/wsl/machine.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pkg/machine/wsl/machine.go b/pkg/machine/wsl/machine.go index fdda45ca6..1da042f6a 100644 --- a/pkg/machine/wsl/machine.go +++ b/pkg/machine/wsl/machine.go @@ -18,6 +18,7 @@ import ( "strings" "time" + "github.com/containers/podman/v4/libpod/define" "github.com/containers/podman/v4/pkg/machine" "github.com/containers/podman/v4/utils" "github.com/containers/storage/pkg/homedir" @@ -1013,6 +1014,12 @@ func (v *MachineVM) Stop(name string, _ machine.StopOptions) error { return nil } +// TODO: We need to rename isRunning to State(); I do not have a +// windows system to test this on. +func (v *MachineVM) State() (machine.Status, error) { + return "", define.ErrNotImplemented +} + func stopWinProxy(v *MachineVM) error { pid, tid, tidFile, err := readWinProxyTid(v) if err != nil { |