mirror of
https://github.com/containers/podman.git
synced 2025-08-06 19:44:14 +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>
16 lines
222 B
Go
16 lines
222 B
Go
package qemu
|
|
|
|
import (
|
|
"os"
|
|
|
|
"github.com/pkg/errors"
|
|
)
|
|
|
|
func getRuntimeDir() (string, error) {
|
|
tmpDir, ok := os.LookupEnv("TMPDIR")
|
|
if !ok {
|
|
return "", errors.New("unable to resolve TMPDIR")
|
|
}
|
|
return tmpDir, nil
|
|
}
|