Skip to content

Commit 0cbe7eb

Browse files
committed
Fall back to default, if GetPort is not available
1 parent 824a68c commit 0cbe7eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libmachine/provision/boot2docker.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ func (provisioner *Boot2DockerProvisioner) AttemptIPContact() {
199199
port, err := provisioner.Driver.GetPort()
200200
if err != nil {
201201
log.Warnf("Could not get port number for created machine: %s", err)
202-
return
202+
port = engine.DefaultPort
203203
}
204204

205205
if conn, err := net.DialTimeout("tcp", fmt.Sprintf("%s:%d", ip, port), 5*time.Second); err != nil {

0 commit comments

Comments
 (0)