Print a warning for Boot2Docker v1.9.1, which is known to have an issue with AUFS (docker/docker#18180)

Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
This commit is contained in:
Akihiro Suda 2015-12-28 18:02:23 +00:00
parent 20b748e063
commit 51a30db7a2
1 changed files with 14 additions and 0 deletions

View File

@ -34,6 +34,12 @@ var (
You may be getting rate limited by Github.`)
)
var (
AUFSBugB2DVersions = map[string]string{
"v1.9.1": "https://github.com/docker/docker/issues/18180",
}
)
func defaultTimeout(network, addr string) (net.Conn, error) {
return net.Dial(network, addr)
}
@ -144,6 +150,14 @@ func (b *b2dReleaseGetter) getReleaseURL(apiURL string) (string, error) {
}
log.Infof("Latest release for %s/%s/%s is %s", host, org, repo, tag)
bugURL, ok := AUFSBugB2DVersions[tag]
if ok {
log.Warnf(`
Boot2Docker %s has a known issue with AUFS.
See here for more details: %s
Consider specifying another storage driver (e.g. 'overlay') using '--engine-storage-driver' instead.
`, tag, bugURL)
}
url := fmt.Sprintf("%s://%s/%s/%s/releases/download/%s/%s", scheme, host, org, repo, tag, b.isoFilename)
return url, nil
}