From 0cbe7eb3b613a2418f4a5cc1ff97c764ced7b14e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20F=20Bj=C3=B6rklund?= Date: Tue, 19 Sep 2017 22:03:26 +0200 Subject: [PATCH] Fall back to default, if GetPort is not available --- libmachine/provision/boot2docker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libmachine/provision/boot2docker.go b/libmachine/provision/boot2docker.go index 56e37e0187..3b35856414 100644 --- a/libmachine/provision/boot2docker.go +++ b/libmachine/provision/boot2docker.go @@ -199,7 +199,7 @@ func (provisioner *Boot2DockerProvisioner) AttemptIPContact() { port, err := provisioner.Driver.GetPort() if err != nil { log.Warnf("Could not get port number for created machine: %s", err) - return + port = engine.DefaultPort } if conn, err := net.DialTimeout("tcp", fmt.Sprintf("%s:%d", ip, port), 5*time.Second); err != nil {