From 87dba924de4bdff0cf21a541e17266789da3f563 Mon Sep 17 00:00:00 2001 From: Lantao Liu Date: Fri, 22 Feb 2019 15:37:07 -0800 Subject: [PATCH] Use the correct sandbox config. Signed-off-by: Lantao Liu --- pkg/server/container_create.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/server/container_create.go b/pkg/server/container_create.go index 2d8a05560..3e5367936 100644 --- a/pkg/server/container_create.go +++ b/pkg/server/container_create.go @@ -195,7 +195,7 @@ func (c *criService) CreateContainer(ctx context.Context, r *runtime.CreateConta // Get container log path. if config.GetLogPath() != "" { - meta.LogPath = filepath.Join(sandbox.Config.GetLogDirectory(), config.GetLogPath()) + meta.LogPath = filepath.Join(sandboxConfig.GetLogDirectory(), config.GetLogPath()) } containerIO, err := cio.NewContainerIO(id,