Browse Source

don't import emport empty hostconfig

Victor Vieux 11 năm trước cách đây
mục cha
commit
0169cf15dd
1 tập tin đã thay đổi với 0 bổ sung3 xóa
  1. 0 3
      api.go

+ 0 - 3
api.go

@@ -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") {