X Tutup
Skip to content

Commit e37814e

Browse files
committed
Merge pull request #194 from eemmiirr/bugfix
* Fixed remove intermediate containers bug on build goal - it was alway...
2 parents d26024c + 2549f57 commit e37814e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/github/dockerjava/jaxrs/BuildImageCmdExec.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ protected ResponseImpl execute(BuildImageCmd command) {
4646
if (command.hasNoCacheEnabled()) {
4747
webResource = webResource.queryParam("nocache", "true");
4848
}
49-
if (command.hasRemoveEnabled()) {
50-
webResource = webResource.queryParam("rm", "true");
49+
if (!command.hasRemoveEnabled()) {
50+
webResource = webResource.queryParam("rm", "false");
5151
}
5252
if (command.isQuiet()) {
5353
webResource = webResource.queryParam("q", "true");

0 commit comments

Comments
 (0)
X Tutup