From 7dcd2c7b2532d937264fcc69f08343cca3038551 Mon Sep 17 00:00:00 2001 From: Pierre DAL-PRA Date: Tue, 9 Feb 2016 00:32:29 +0100 Subject: [PATCH] Warn that Boot2Docker ISO won't be auto upgraded if its URL is explicitly set Signed-off-by: Pierre DAL-PRA --- libmachine/mcnutils/b2d.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libmachine/mcnutils/b2d.go b/libmachine/mcnutils/b2d.go index 82d94bd18c..169eee296f 100644 --- a/libmachine/mcnutils/b2d.go +++ b/libmachine/mcnutils/b2d.go @@ -374,12 +374,17 @@ func (b *B2dUtils) UpdateISOCache(isoURL string) error { } } + exists := b.exists() + if isoURL != "" { + if exists { + // Warn that the b2d iso won't be updated if isoURL is set + log.Warnf("Boot2Docker URL was explicitly set to %q at create time, so Docker Machine cannot upgrade this machine to the latest version.", isoURL) + } // Non-default B2D are not cached return nil } - exists := b.exists() if !exists { log.Info("No default Boot2Docker ISO found locally, downloading the latest release...") return b.DownloadLatestBoot2Docker("")