mirror of
https://github.com/containers/podman.git
synced 2025-07-17 17:43:23 +08:00

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>
14 lines
241 B
Go
14 lines
241 B
Go
package qemu
|
|
|
|
import (
|
|
"github.com/containers/podman/v3/pkg/rootless"
|
|
"github.com/containers/podman/v3/pkg/util"
|
|
)
|
|
|
|
func getRuntimeDir() (string, error) {
|
|
if !rootless.IsRootless() {
|
|
return "/run", nil
|
|
}
|
|
return util.GetRuntimeDir()
|
|
}
|