Skip to content

Commit 51a30db

Browse files
committed
Print a warning for Boot2Docker v1.9.1, which is known to have an issue with AUFS (moby/moby#18180)
Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
1 parent 20b748e commit 51a30db

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

libmachine/mcnutils/b2d.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ var (
3434
You may be getting rate limited by Github.`)
3535
)
3636

37+
var (
38+
AUFSBugB2DVersions = map[string]string{
39+
"v1.9.1": "https://github.com/docker/docker/issues/18180",
40+
}
41+
)
42+
3743
func defaultTimeout(network, addr string) (net.Conn, error) {
3844
return net.Dial(network, addr)
3945
}
@@ -144,6 +150,14 @@ func (b *b2dReleaseGetter) getReleaseURL(apiURL string) (string, error) {
144150
}
145151

146152
log.Infof("Latest release for %s/%s/%s is %s", host, org, repo, tag)
153+
bugURL, ok := AUFSBugB2DVersions[tag]
154+
if ok {
155+
log.Warnf(`
156+
Boot2Docker %s has a known issue with AUFS.
157+
See here for more details: %s
158+
Consider specifying another storage driver (e.g. 'overlay') using '--engine-storage-driver' instead.
159+
`, tag, bugURL)
160+
}
147161
url := fmt.Sprintf("%s://%s/%s/%s/releases/download/%s/%s", scheme, host, org, repo, tag, b.isoFilename)
148162
return url, nil
149163
}

0 commit comments

Comments
 (0)