From c2098b0ab54de19ca7dd19faaf266a715471a2ca Mon Sep 17 00:00:00 2001 From: Darren Shepherd Date: Mon, 25 May 2015 19:34:49 -0700 Subject: [PATCH] Preinitialize MountPoints to avoid assigning to a nil map Fixes #13435 Signed-off-by: Darren Shepherd Upstream-commit: 59214a0737560a8a2386884dc438b4b003d407ba Component: engine --- components/engine/daemon/daemon.go | 1 + 1 file changed, 1 insertion(+) diff --git a/components/engine/daemon/daemon.go b/components/engine/daemon/daemon.go index 22bbf8d7cd..0246dd0a86 100644 --- a/components/engine/daemon/daemon.go +++ b/components/engine/daemon/daemon.go @@ -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(), }, }