Merge pull request #13617 from holzman/volume-mount-ipv4

Explicitly use IPv4 to check if podman-machine VM is listening
This commit is contained in:
OpenShift Merge Robot 2022-03-23 20:27:31 +01:00 committed by GitHub
commit 1092247173
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -782,7 +782,7 @@ func (v *MachineVM) isRunning() (bool, error) {
func (v *MachineVM) isListening() bool {
// Check if we can dial it
conn, err := net.DialTimeout("tcp", fmt.Sprintf("%s:%d", "localhost", v.Port), 10*time.Millisecond)
conn, err := net.DialTimeout("tcp", fmt.Sprintf("%s:%d", "127.0.0.1", v.Port), 10*time.Millisecond)
if err != nil {
return false
}