Skip to content

Commit

Permalink
lib: allow disabling user docker param, #TASK-6445
Browse files Browse the repository at this point in the history
  • Loading branch information
pfurio committed Sep 24, 2024
1 parent 0008005 commit 403902b
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ public static String buildCommandLine(String image, List<AbstractMap.SimpleEntry
setUser = false;
}
for (String key : dockerParams.keySet()) {
if (key.equals("user") && StringUtils.isEmpty(dockerParams.get("user"))) {
// User wants to disable user setting
continue;
}
if (!key.startsWith("-")) {
commandLine.append("--");
}
Expand Down

0 comments on commit 403902b

Please sign in to comment.