mirror of https://github.com/docker/docs.git
Fixed bug where the VirtualBox shared folder would attempt to be created twice on Windows
This commit is contained in:
parent
103af8b530
commit
4d5b9861dd
|
|
@ -66,16 +66,6 @@ var _steps = [{
|
||||||
yield machine.rm();
|
yield machine.rm();
|
||||||
}
|
}
|
||||||
yield machine.create();
|
yield machine.create();
|
||||||
if(util.isWindows()) {
|
|
||||||
let home = util.home();
|
|
||||||
let driveLetter = home.charAt(0);
|
|
||||||
let parts = home.split('\\').slice(0, -1);
|
|
||||||
let usersDirName = parts[parts.length-1];
|
|
||||||
let usersDirPath = parts.join('\\');
|
|
||||||
let shareName = driveLetter + '/' + usersDirName;
|
|
||||||
yield virtualBox.mountSharedDir(machine.name(), shareName, usersDirPath);
|
|
||||||
yield machine.start();
|
|
||||||
}
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue