From b0d36f63513ee64fa1c1eff4d1045a7633804f12 Mon Sep 17 00:00:00 2001 From: "Jason T. Greene" Date: Thu, 24 Mar 2022 22:07:55 -0500 Subject: Implements Windows volume/mount support Based on WSL2 9p support: remaps windows paths to /mnt/ locations for both podman and Docker API clients. Signed-off-by: Jason T. Greene --- pkg/machine/wsl/machine.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pkg/machine/wsl') diff --git a/pkg/machine/wsl/machine.go b/pkg/machine/wsl/machine.go index dff7bfef9..38bd4e96d 100644 --- a/pkg/machine/wsl/machine.go +++ b/pkg/machine/wsl/machine.go @@ -448,6 +448,10 @@ func configureSystem(v *MachineVM, dist string) error { return errors.Wrap(err, "could not create containers.conf for guest OS") } + if err := runCmdPassThrough("wsl", "-d", dist, "sh", "-c", "echo wsl > /etc/containers/podman-machine"); err != nil { + return errors.Wrap(err, "could not create podman-machine file for guest OS") + } + return nil } -- cgit v1.2.3-54-g00ecf