mirror of https://github.com/docker/docs.git
Merge pull request #2757 from dgageot/fix-broken-vtx-detection
Fix broken VTx detection
This commit is contained in:
commit
e9be8eef71
|
@ -211,12 +211,14 @@ func (d *Driver) PreCreateCheck() error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
if isHyperVInstalled() {
|
|
||||||
return ErrNotCompatibleWithHyperV
|
|
||||||
}
|
|
||||||
|
|
||||||
if !d.NoVTXCheck {
|
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
|
// Downloading boot2docker to cache should be done here to make sure
|
||||||
|
|
Loading…
Reference in New Issue