Preinitialize MountPoints to avoid assigning to a nil map

Fixes #13435

Signed-off-by: Darren Shepherd <darren@rancher.com>
This commit is contained in:
Darren Shepherd
2015-05-25 19:37:57 -07:00
parent 628c396555
commit 59214a0737
+1
View File
@@ -161,6 +161,7 @@ func (daemon *Daemon) load(id string) (*Container, error) {
CommonContainer: CommonContainer{
State: NewState(),
root: daemon.containerRoot(id),
MountPoints: make(map[string]*mountPoint),
execCommands: newExecStore(),
},
}