Use the correct sandbox config.
Signed-off-by: Lantao Liu <lantaol@google.com>
This commit is contained in:
parent
fbce57903c
commit
87dba924de
@ -195,7 +195,7 @@ func (c *criService) CreateContainer(ctx context.Context, r *runtime.CreateConta
|
|||||||
|
|
||||||
// Get container log path.
|
// Get container log path.
|
||||||
if config.GetLogPath() != "" {
|
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,
|
containerIO, err := cio.NewContainerIO(id,
|
||||||
|
Loading…
Reference in New Issue
Block a user