forbid setting no-cache and no-cache-filter together

Per review request.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
pull/860/head
Tonis Tiigi 3 years ago
parent 32f6358d78
commit eb8057e8e0

@ -99,6 +99,10 @@ func runBuild(dockerCli command.Cli, in buildOptions) (err error) {
pull = *in.pull
}
if noCache && len(in.noCacheFilter) > 0 {
return errors.Errorf("--no-cache and --no-cache-filter cannot currently be used together")
}
if in.quiet && in.progress != "auto" && in.progress != "quiet" {
return errors.Errorf("progress=%s and quiet cannot be used together", in.progress)
} else if in.quiet {

Loading…
Cancel
Save