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:
Rabi Mishra 2019-06-19 10:59:22 +05:30
parent 01eb542554
commit d1eef2930e
1 changed files with 1 additions and 1 deletions

View File

@ -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: