瀏覽代碼

Initialize execStore while restoring a container from checkpoint.

Docker-DCO-1.1-Signed-off-by: Vishnu Kannan <vishnuk@google.com> (github: vishh)
Vishnu Kannan 10 年之前
父節點
當前提交
003afaf1ce
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      daemon/daemon.go

+ 5 - 1
daemon/daemon.go

@@ -165,7 +165,11 @@ func (daemon *Daemon) containerRoot(id string) string {
 // Load reads the contents of a container from disk
 // This is typically done at startup.
 func (daemon *Daemon) load(id string) (*Container, error) {
-	container := &Container{root: daemon.containerRoot(id), State: NewState()}
+	container := &Container{
+		root:         daemon.containerRoot(id),
+		State:        NewState(),
+		execCommands: newExecStore(),
+	}
 	if err := container.FromDisk(); err != nil {
 		return nil, err
 	}