diff options
author | Peter Hunt <pehunt@redhat.com> | 2019-05-18 19:39:11 -0400 |
---|---|---|
committer | Peter Hunt <pehunt@redhat.com> | 2019-05-28 11:10:57 -0400 |
commit | f61fa28d39298def261dded2644b8dcf45366415 (patch) | |
tree | 36081cf2a2644264099ffcf32836b8c85f9ddb04 /libpod/oci.go | |
parent | 18d7fcb5eb1966c4d3748a50c625c01c1ebd9f5b (diff) | |
download | podman-f61fa28d39298def261dded2644b8dcf45366415.tar.gz podman-f61fa28d39298def261dded2644b8dcf45366415.tar.bz2 podman-f61fa28d39298def261dded2644b8dcf45366415.zip |
Added --log-driver and journald logging
Signed-off-by: Peter Hunt <pehunt@redhat.com>
Diffstat (limited to 'libpod/oci.go')
-rw-r--r-- | libpod/oci.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libpod/oci.go b/libpod/oci.go index abc6214b9..152c8e73e 100644 --- a/libpod/oci.go +++ b/libpod/oci.go @@ -367,8 +367,6 @@ func (r *OCIRuntime) execContainer(c *Container, cmd, capAdd, env []string, tty args := []string{} // TODO - should we maintain separate logpaths for exec sessions? - args = append(args, "--log", c.LogPath()) - args = append(args, "exec") if cwd != "" { @@ -402,9 +400,10 @@ func (r *OCIRuntime) execContainer(c *Container, cmd, capAdd, env []string, tty args = append(args, "--env", envVar) } - // Append container ID and command + // Append container ID, name and command args = append(args, c.ID()) args = append(args, cmd...) + args = append(args, c.Name()) logrus.Debugf("Starting runtime %s with following arguments: %v", r.path, args) |