Merge pull request #1055 from Random-Liu/use-right-sandbox-config
Use the correct sandbox config.
This commit is contained in:
commit
210e80289b
@ -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