Skip to content

Commit 51a6105

Browse files
committed
do not try to remove intermediate docker images if user has selected dryRun
1 parent 7c211f3 commit 51a6105

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

imagetool/src/main/java/com/oracle/weblogic/imagetool/cli/menu/CommonOptions.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,9 @@ public void cleanup() throws IOException, InterruptedException {
245245
return;
246246
}
247247
Utils.deleteFilesRecursively(buildDir());
248-
Utils.removeIntermediateDockerImages(buildEngine, buildId());
248+
if (!dryRun) {
249+
Utils.removeIntermediateDockerImages(buildEngine, buildId());
250+
}
249251
}
250252

251253
/**

0 commit comments

Comments
 (0)