Use k8s-file log driver with podman
As suggested in https://github.com/containers/libpod/issues/3363 Change-Id: I00d037100adbe1c052b64f244d852d46625aa9aa Depends-On: https://review.opendev.org/666220
This commit is contained in:
parent
01eb542554
commit
d1eef2930e
|
@ -38,7 +38,7 @@ class PodmanBuilder(base.BaseBuilder):
|
|||
if not os.path.exists(self.cont_log_path):
|
||||
os.makedirs(self.cont_log_path)
|
||||
log_path = os.path.join(self.cont_log_path, container)
|
||||
logging = ['--log-driver', 'json-file',
|
||||
logging = ['--log-driver', 'k8s-file',
|
||||
'--log-opt', 'path=%s.log' % log_path]
|
||||
cmd.extend(logging)
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue