From 003afaf1ce9f9d2983c84093fb00f4b68a99b0fa Mon Sep 17 00:00:00 2001 From: Vishnu Kannan Date: Thu, 18 Sep 2014 21:38:22 +0000 Subject: [PATCH] Initialize execStore while restoring a container from checkpoint. Docker-DCO-1.1-Signed-off-by: Vishnu Kannan (github: vishh) --- daemon/daemon.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/daemon/daemon.go b/daemon/daemon.go index aef5a1a07d..0b1e7c512c 100644 --- a/daemon/daemon.go +++ b/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 }