1
0
mirror of https://github.com/docker/docs.git synced 2026-11-05 00:14:17 +03:00

Merge pull request #2757 from dgageot/fix-broken-vtx-detection

Fix broken VTx detection
This commit is contained in:
Jean-Laurent de Morlhon
2016-01-06 16:11:46 +01:00

View File

@@ -211,12 +211,14 @@ func (d *Driver) PreCreateCheck() error {
return err
}
if isHyperVInstalled() {
return ErrNotCompatibleWithHyperV
}
if !d.NoVTXCheck {
return ErrMustEnableVTX
if isHyperVInstalled() {
return ErrNotCompatibleWithHyperV
}
if d.IsVTXDisabled() {
return ErrMustEnableVTX
}
}
// Downloading boot2docker to cache should be done here to make sure