Merge pull request #2777 from dotcloud/fix_port_stop_start

don't import emport empty hostconfig
This commit is contained in:
Victor Vieux 2013-11-19 18:36:22 -08:00
commit b700ee006a

3
api.go
View file

@ -647,9 +647,6 @@ func postContainersStart(srv *Server, version float64, w http.ResponseWriter, r
}
name := vars["name"]
job := srv.Eng.Job("start", name)
if err := job.ImportEnv(HostConfig{}); err != nil {
return fmt.Errorf("Couldn't initialize host configuration")
}
// allow a nil body for backwards compatibility
if r.Body != nil {
if matchesContentType(r.Header.Get("Content-Type"), "application/json") {