X Tutup
Skip to content

Add missing options to BuildCmd and set them to match Docker client.#19

Merged
marcuslinke merged 2 commits intodocker-java:masterfrom
YouTechnology:master
Jul 9, 2014
Merged

Add missing options to BuildCmd and set them to match Docker client.#19
marcuslinke merged 2 commits intodocker-java:masterfrom
YouTechnology:master

Conversation

@sfitts
Copy link
Copy Markdown

@sfitts sfitts commented Jul 9, 2014

By default the Docker client's build command will set the --rm option to true so that intermediate containers are cleaned up once the build completes. This is useful since it avoids cluttering up the list of stopped containers. I noticed this after I switched gradle-docker to use the API instead of the command line client, so I wanted to bring the two in line. The API supports this option, so I added it to BuildImgCmd.java with a default setting of true.

The build API also supports a -q option which can be used to suppress output. By default this is false. This option was added as well.

marcuslinke added a commit that referenced this pull request Jul 9, 2014
Add missing options to BuildCmd and set them to match Docker client.
@marcuslinke marcuslinke merged commit 4e80442 into docker-java:master Jul 9, 2014
@marcuslinke
Copy link
Copy Markdown
Contributor

@sfitts Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

X Tutup