1
0
mirror of https://github.com/docker/cli.git synced 2026-01-16 20:22:36 +03:00

Preinitialize MountPoints to avoid assigning to a nil map

Fixes #13435

Signed-off-by: Darren Shepherd <darren@rancher.com>
Upstream-commit: 59214a0737560a8a2386884dc438b4b003d407ba
Component: engine
This commit is contained in:
Darren Shepherd
2015-05-25 19:34:49 -07:00
parent 6497871310
commit c2098b0ab5

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(),
},
}