Skip to content

Commit 10abf14

Browse files
committed
fix the dir related for docker
1 parent f5bd770 commit 10abf14

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/net/qihoo/xlearning/container/DockerContainer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,13 @@ public Process exec(String command, String[] envp, Map<String, String> envs, Fil
7171
String javaPath = envs.get("JAVA_HOME");
7272
if (javaPath != null && javaPath != "")
7373
mount += " -v " + javaPath + ":" + javaPath + ":ro";
74-
String[] localDirs = envs.get("LOCAL_DIRS").split(File.pathSeparator);
74+
String[] localDirs = envs.get("LOCAL_DIRS").split(",");
7575
if (localDirs.length > 0) {
7676
for (String perPath : localDirs) {
7777
mount = mount + " -v " + perPath + ":" + perPath;
7878
}
7979
}
80-
String[] logsDirs = envs.get("LOG_DIRS").split(File.pathSeparator);
80+
String[] logsDirs = envs.get("LOG_DIRS").split(",");
8181
if (localDirs.length > 0) {
8282
for (String perPath : logsDirs) {
8383
mount = mount + " -v " + perPath + ":" + perPath;

0 commit comments

Comments
 (0)