mirror of https://github.com/docker/docs.git
Initialize execStore while restoring a container from checkpoint.
Docker-DCO-1.1-Signed-off-by: Vishnu Kannan <vishnuk@google.com> (github: vishh)
This commit is contained in:
parent
db5edfb748
commit
003afaf1ce
|
@ -165,7 +165,11 @@ func (daemon *Daemon) containerRoot(id string) string {
|
||||||
// Load reads the contents of a container from disk
|
// Load reads the contents of a container from disk
|
||||||
// This is typically done at startup.
|
// This is typically done at startup.
|
||||||
func (daemon *Daemon) load(id string) (*Container, error) {
|
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 {
|
if err := container.FromDisk(); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue