From e82426fa8fc982a5885065d76ef684bf0508c068 Mon Sep 17 00:00:00 2001 From: Mrunal Patel Date: Wed, 5 Oct 2016 12:18:56 -0700 Subject: [PATCH] Use container ID as the directory name Signed-off-by: Mrunal Patel --- server/container.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/container.go b/server/container.go index 48ad9363..b5cff369 100644 --- a/server/container.go +++ b/server/container.go @@ -74,7 +74,7 @@ func (s *Server) CreateContainer(ctx context.Context, req *pb.CreateContainerReq } // containerDir is the dir for the container bundle. - containerDir := filepath.Join(s.runtime.ContainerDir(), name) + containerDir := filepath.Join(s.runtime.ContainerDir(), containerID) if _, err = os.Stat(containerDir); err == nil { return nil, fmt.Errorf("container (%s) already exists", containerDir)