mirror of
https://github.com/containers/podman.git
synced 2025-07-18 10:08:07 +08:00
Merge pull request #11096 from baude/gvproxystaticpath
Use static path for gvproxy
This commit is contained in:
@ -603,9 +603,9 @@ func CheckActiveVM() (bool, string, error) {
|
|||||||
// startHostNetworking runs a binary on the host system that allows users
|
// startHostNetworking runs a binary on the host system that allows users
|
||||||
// to setup port forwarding to the podman virtual machine
|
// to setup port forwarding to the podman virtual machine
|
||||||
func (v *MachineVM) startHostNetworking() error {
|
func (v *MachineVM) startHostNetworking() error {
|
||||||
binary, err := exec.LookPath(machine.ForwarderBinaryName)
|
binary := filepath.Join("/usr/lib/podman/", machine.ForwarderBinaryName)
|
||||||
if err != nil {
|
if _, err := os.Stat(binary); os.IsNotExist(err) {
|
||||||
return err
|
return errors.Errorf("unable to find %s", binary)
|
||||||
}
|
}
|
||||||
// Listen on all at port 7777 for setting up and tearing
|
// Listen on all at port 7777 for setting up and tearing
|
||||||
// down forwarding
|
// down forwarding
|
||||||
|
Reference in New Issue
Block a user