Selaa lähdekoodia

Merge pull request #53 from thaJeztah/18.09_backport_buildkit-cli-control

[18.09] backport always hornor client side to choose which builder to use with DOCKER_…
Sebastiaan van Stijn 6 vuotta sitten
vanhempi
commit
5fb0a7ced7
1 muutettua tiedostoa jossa 0 lisäystä ja 6 poistoa
  1. 0 6
      api/server/router/build/build_routes.go

+ 0 - 6
api/server/router/build/build_routes.go

@@ -250,12 +250,6 @@ func (br *buildRouter) postBuild(ctx context.Context, w http.ResponseWriter, r *
 		return errdefs.InvalidParameter(errors.New("squash is only supported with experimental mode"))
 		return errdefs.InvalidParameter(errors.New("squash is only supported with experimental mode"))
 	}
 	}
 
 
-	builderVersion := BuilderVersion(*br.features)
-	// check if the builder feature has been enabled from daemon as well.
-	if buildOptions.Version == types.BuilderBuildKit && builderVersion != "" && builderVersion != types.BuilderBuildKit {
-		return errdefs.InvalidParameter(errors.New("buildkit is not enabled on daemon"))
-	}
-
 	out := io.Writer(output)
 	out := io.Writer(output)
 	if buildOptions.SuppressOutput {
 	if buildOptions.SuppressOutput {
 		out = notVerboseBuffer
 		out = notVerboseBuffer