Ver código fonte

*Builder: warn pre-1.3 clients that they need to upgrade. This breaks semver, but our API should still be in 0.X versioning, in which case semver allows breaking changes.

Solomon Hykes 12 anos atrás
pai
commit
90dde9beab
1 arquivos alterados com 3 adições e 0 exclusões
  1. 3 0
      api.go

+ 3 - 0
api.go

@@ -715,6 +715,9 @@ func postImagesGetCache(srv *Server, version float64, w http.ResponseWriter, r *
 }
 
 func postBuild(srv *Server, version float64, w http.ResponseWriter, r *http.Request, vars map[string]string) error {
+	if version < 1.3 {
+		return fmt.Errorf("Multipart upload for build is no longer supported. Please upgrade your docker client.")
+	}
 	// FIXME: "remote" is not a clear variable name.
 	remote := r.FormValue("t")
 	tag := ""