зеркало из https://github.com/microsoft/docker.git
*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.
This commit is contained in:
Родитель
0809f649d3
Коммит
90dde9beab
3
api.go
3
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 := ""
|
||||
|
|
Загрузка…
Ссылка в новой задаче