Merge pull request #730 from tonistiigi/no-cache-fix

buildctl: fix frontends ignore-cache setting
docker-18.09 v0.3.3
Akihiro Suda 2018-11-21 12:35:10 +09:00 committed by GitHub
commit 8cf9bec86a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -218,7 +218,9 @@ func build(clicontext *cli.Context) error {
return err
}
} else {
solveOpt.FrontendAttrs["no-cache"] = ""
if clicontext.Bool("no-cache") {
solveOpt.FrontendAttrs["no-cache"] = ""
}
}
if clicontext.String("frontend") != "" && len(clicontext.StringSlice("import-cache")) != 0 {