Skip to content

Commit 71f36e7

Browse files
kichikdschep
authored andcommitted
Reorder bindPaths for faster detection (#211)
1 parent c4901fe commit 71f36e7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/docker.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,12 @@ function getBindPath(servicePath) {
9292
throw new Error(`Unknown path format ${baseBindPath.substr(10)}...`);
9393
}
9494

95-
bindPaths.push(`/${drive.toLowerCase()}/${path}`);
95+
bindPaths.push(`/${drive.toLowerCase()}/${path}`); // Docker Toolbox (seems like Docker for Windows can support this too)
96+
bindPaths.push(`${drive.toLowerCase()}:/${path}`); // Docker for Windows
97+
// other options just in case
9698
bindPaths.push(`/${drive.toUpperCase()}/${path}`);
9799
bindPaths.push(`/mnt/${drive.toLowerCase()}/${path}`);
98100
bindPaths.push(`/mnt/${drive.toUpperCase()}/${path}`);
99-
bindPaths.push(`${drive.toLowerCase()}:/${path}`);
100101
bindPaths.push(`${drive.toUpperCase()}:/${path}`);
101102

102103
for (let i = 0; i < bindPaths.length; i++) {

0 commit comments

Comments
 (0)