Browse code

Initialize execStore while restoring a container from checkpoint.

Docker-DCO-1.1-Signed-off-by: Vishnu Kannan <vishnuk@google.com> (github: vishh)

Vishnu Kannan authored on 2014/09/19 06:38:22
Showing 1 changed files
... ...
@@ -165,7 +165,11 @@ func (daemon *Daemon) containerRoot(id string) string {
165 165
 // Load reads the contents of a container from disk
166 166
 // This is typically done at startup.
167 167
 func (daemon *Daemon) load(id string) (*Container, error) {
168
-	container := &Container{root: daemon.containerRoot(id), State: NewState()}
168
+	container := &Container{
169
+		root:         daemon.containerRoot(id),
170
+		State:        NewState(),
171
+		execCommands: newExecStore(),
172
+	}
169 173
 	if err := container.FromDisk(); err != nil {
170 174
 		return nil, err
171 175
 	}