Merge pull request #531 from tonistiigi/net-none

pull/545/head
Akihiro Suda 4 years ago committed by GitHub
commit 84a734dc87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -465,9 +465,11 @@ func toSolveOpt(ctx context.Context, d driver.Driver, multiDriver bool, opt Opti
// setup networkmode
switch opt.NetworkMode {
case "host", "none":
case "host":
so.FrontendAttrs["force-network-mode"] = opt.NetworkMode
so.AllowedEntitlements = append(so.AllowedEntitlements, entitlements.EntitlementNetworkHost)
case "none":
so.FrontendAttrs["force-network-mode"] = opt.NetworkMode
case "", "default":
default:
return nil, nil, errors.Errorf("network mode %q not supported by buildkit", opt.NetworkMode)

Loading…
Cancel
Save