summaryrefslogtreecommitdiff
path: root/libpod/oci.go
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@gmail.com>2017-11-21 13:51:51 -0500
committerAtomic Bot <atomic-devel@projectatomic.io>2017-11-21 20:09:09 +0000
commit152882bf19e1c94110187264ed37d25976bf1e73 (patch)
tree05714e76fa0e96c24c0b8b36f6effd271bc260f4 /libpod/oci.go
parent8e76ebcf6e8925d5fa6a8c9ab517d665b44c7b63 (diff)
downloadpodman-152882bf19e1c94110187264ed37d25976bf1e73.tar.gz
podman-152882bf19e1c94110187264ed37d25976bf1e73.tar.bz2
podman-152882bf19e1c94110187264ed37d25976bf1e73.zip
Add ability to retrieve container's log path to API
Signed-off-by: Matthew Heon <matthew.heon@gmail.com> Closes: #56 Approved by: rhatdan
Diffstat (limited to 'libpod/oci.go')
-rw-r--r--libpod/oci.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/oci.go b/libpod/oci.go
index 3ad3fdd8e..ddbd2f606 100644
--- a/libpod/oci.go
+++ b/libpod/oci.go
@@ -139,7 +139,7 @@ func (r *OCIRuntime) createContainer(ctr *Container, cgroupParent string) error
args = append(args, "-p", filepath.Join(ctr.state.RunDir, "pidfile"))
// TODO container log location should be configurable
// The default also likely shouldn't be this
- args = append(args, "-l", filepath.Join(ctr.config.StaticDir, "ctr.log"))
+ args = append(args, "-l", ctr.logPath())
args = append(args, "--exit-dir", r.exitsDir)
args = append(args, "--socket-dir-path", r.socketsDir)
if ctr.config.Spec.Process.Terminal {