-
Notifications
You must be signed in to change notification settings - Fork 5.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't set build --no-cache option as "--no-cache=true" #4667
Comments
This inconsistency comes from the current implementation of the command which doesn't take those cases into account: Line 235 in 962ba5b
I'm not sure how to properly change it to support the following supported version by the docker command:
|
We use a different command-line parser because |
That makes sense, thank you for the clarification, @MichaelPereira and @shin- . Would it be possible to align |
I don't believe |
Alright, don't worry, this is certainly not the most important issue and one can easily work around it. Cheers |
What are the workarounds for this? How can I prohibit caching in docker-compose or in the Dockerfile? |
With regular Docker commands, I can do:
docker build --no-cache .
or
docker build --no-cache=true .
In docker-compose, however, this one works
docker-compose build --no-cache
while this one
docker-compose build --no-cache=true
fails with
Is there a specific reason for this inconsistency? Using the more explicit form would be useful for me in the context of a Jenkins job with a "boolean parameter" which is a checkbox, setting a bash variable to "true" or "false".
The text was updated successfully, but these errors were encountered: