From 59214a0737560a8a2386884dc438b4b003d407ba 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 --- daemon/daemon.go | 1 + 1 file changed, 1 insertion(+) diff --git a/daemon/daemon.go b/daemon/daemon.go index 22bbf8d7cd..0246dd0a86 100644 --- a/daemon/daemon.go +++ b/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(), }, }