浏览代码

do not send hostconfig at start, as we do on create now

Signed-off-by: Victor Vieux <vieux@docker.com>
Victor Vieux 10 年之前
父节点
当前提交
12028fc159
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      api/client/commands.go

+ 1 - 1
api/client/commands.go

@@ -2289,7 +2289,7 @@ func (cli *DockerCli) CmdRun(args ...string) error {
 	}
 
 	//start the container
-	if _, _, err = readBody(cli.call("POST", "/containers/"+runResult.Get("Id")+"/start", hostConfig, false)); err != nil {
+	if _, _, err = readBody(cli.call("POST", "/containers/"+runResult.Get("Id")+"/start", nil, false)); err != nil {
 		return err
 	}