Skip to content

Commit

Permalink
Don't always set the user parameter when starting container in tests
Browse files Browse the repository at this point in the history
Fixes: #41659
(cherry picked from commit a0c7c69)
  • Loading branch information
geoand authored and gsmet committed Jul 9, 2024
1 parent 9161b07 commit ba99497
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,9 @@ public void start() throws IOException {
args.add("-i"); // Interactive, write logs to stdout
args.add("--rm");

args.addAll(NativeImageBuildLocalContainerRunner.getVolumeAccessArguments(containerRuntime));
if (!volumeMounts.isEmpty()) {
args.addAll(NativeImageBuildLocalContainerRunner.getVolumeAccessArguments(containerRuntime));
}

args.add("-p");
args.add(httpPort + ":" + httpPort);
Expand Down

0 comments on commit ba99497

Please sign in to comment.