Skip to content

Commit 8b8f1a5

Browse files
authored
added --rm to docker command to remove container after checking environment for update image (#156)
1 parent 5097101 commit 8b8f1a5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

imagetool/src/main/java/com/oracle/weblogic/imagetool/util/Utils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ private static List<String> getDockerRunCmd(String hostDirToMount, String docker
450450
String oneCommand = String.format("echo %s | base64 -d | /bin/bash", encodedFile);
451451
logger.finer("ONE COMMAND [" + oneCommand + "]");
452452
final List<String> retVal = Stream.of(
453-
"docker", "run",
453+
"docker", "run", "--rm",
454454
dockerImage, "/bin/bash", "-c", oneCommand).collect(Collectors.toList());
455455
if (args != null && args.length > 0) {
456456
retVal.addAll(Arrays.asList(args));

imagetool/src/main/resources/ImageTool.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ IMG-0004=Invalid patch id {0}. The patch id must be in the format of {1}. Where
66
IMG-0005=Installer response file: {0}
77
IMG-0006=No patch conflicts detected
88
IMG-0007={0} is not a directory
9-
IMG-0008=Will update OPatch in final image from version {0} to version {1}
9+
IMG-0008=Updating OPatch in final image from version {0} to version {1}
1010
IMG-0009=skipping patch conflict check, no support credentials provided
1111
IMG-0010=Oracle Home will be set to {0}
1212
IMG-0011=Installer with key="{0}" is not in the local cache, please download the installer and add it to the cache with "imagetool cache addInstaller ..."

0 commit comments

Comments
 (0)