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
  • Loading branch information
geoand committed Jul 4, 2024
1 parent 684d70a commit a0c7c69
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 a0c7c69

Please sign in to comment.