From b7015c1a46fbea47ad8e7985583b30bd918ddc4b Mon Sep 17 00:00:00 2001 From: Lantao Liu Date: Fri, 8 Mar 2019 17:53:36 -0800 Subject: Put the gvisor user log into sandbox log directory. (#17) Signed-off-by: Lantao Liu --- pkg/v2/service.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkg/v2') diff --git a/pkg/v2/service.go b/pkg/v2/service.go index 0a5054e22..912798e23 100644 --- a/pkg/v2/service.go +++ b/pkg/v2/service.go @@ -696,7 +696,7 @@ func newInit(ctx context.Context, path, workDir, namespace string, platform rpro if err != nil { return nil, errors.Wrap(err, "read oci spec") } - userLog := runsc.FormatLogPath(r.ID, options.RunscConfig) + runsc.FormatLogPath(r.ID, options.RunscConfig) rootfs := filepath.Join(path, "rootfs") runtime := proc.NewRunsc(options.Root, path, namespace, options.BinaryName, options.RunscConfig) p := proc.New(r.ID, runtime, rproc.Stdio{ @@ -712,7 +712,7 @@ func newInit(ctx context.Context, path, workDir, namespace string, platform rpro p.IoUID = int(options.IoUid) p.IoGID = int(options.IoGid) p.Sandbox = utils.IsSandbox(spec) - p.UserLog = userLog + p.UserLog = utils.UserLogPath(spec) p.Monitor = shim.Default return p, nil } -- cgit v1.2.3