diff options
author | Brent Baude <bbaude@redhat.com> | 2021-05-07 14:14:59 -0500 |
---|---|---|
committer | Brent Baude <bbaude@redhat.com> | 2021-06-01 10:13:18 -0500 |
commit | 7ef3981abe2412727840a2886489a08c03a05299 (patch) | |
tree | a616723311b745a6902199d296c6655d1307497e /pkg/machine/qemu/options_linux.go | |
parent | 7dd463bad1b53802caf3cc1e1e1cc4a250e1667a (diff) | |
download | podman-7ef3981abe2412727840a2886489a08c03a05299.tar.gz podman-7ef3981abe2412727840a2886489a08c03a05299.tar.bz2 podman-7ef3981abe2412727840a2886489a08c03a05299.zip |
Enable port forwarding on host
Using the gvproxy application on the host, we can now port forward from
the machine vm on the host. It requires that 'gvproxy' be installed in
an executable location. gvproxy can be found in the
containers/gvisor-tap-vsock github repo.
[NO TESTS NEEDED]
Signed-off-by: Brent Baude <bbaude@redhat.com>
Diffstat (limited to 'pkg/machine/qemu/options_linux.go')
-rw-r--r-- | pkg/machine/qemu/options_linux.go | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/pkg/machine/qemu/options_linux.go b/pkg/machine/qemu/options_linux.go index 0a2e40d8f..c73a68cc6 100644 --- a/pkg/machine/qemu/options_linux.go +++ b/pkg/machine/qemu/options_linux.go @@ -1,7 +1,13 @@ package qemu -import "github.com/containers/podman/v3/pkg/util" +import ( + "github.com/containers/podman/v3/pkg/rootless" + "github.com/containers/podman/v3/pkg/util" +) -func getSocketDir() (string, error) { +func getRuntimeDir() (string, error) { + if !rootless.IsRootless() { + return "/run", nil + } return util.GetRuntimeDir() } |