diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2017-12-11 10:41:58 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-11 10:41:58 -0600 |
commit | 0e328de08dc6e17b4cc45b1bf47f2deddb3fef6d (patch) | |
tree | 8b88407b645e9403f4fc7ebf2e4d62bc34785a20 /libpod/oci.go | |
parent | 8d31ec2ad775c97c4b860eb24a3481092b6e88e3 (diff) | |
parent | e8a32e3722e0b814c654cdb8809565a21fc120d3 (diff) | |
download | podman-0e328de08dc6e17b4cc45b1bf47f2deddb3fef6d.tar.gz podman-0e328de08dc6e17b4cc45b1bf47f2deddb3fef6d.tar.bz2 podman-0e328de08dc6e17b4cc45b1bf47f2deddb3fef6d.zip |
Merge pull request #93 from baude/kpod_exec
kpod exec
Diffstat (limited to 'libpod/oci.go')
-rw-r--r-- | libpod/oci.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libpod/oci.go b/libpod/oci.go index 6ea6bb64f..323e97273 100644 --- a/libpod/oci.go +++ b/libpod/oci.go @@ -454,3 +454,9 @@ func (r *OCIRuntime) pauseContainer(ctr *Container) error { func (r *OCIRuntime) unpauseContainer(ctr *Container) error { return utils.ExecCmdWithStdStreams(os.Stdin, os.Stdout, os.Stderr, r.path, "resume", ctr.ID()) } + +//execContiner executes a command in a running container +func (r *OCIRuntime) execContainer(c *Container, cmd []string, globalOpts runcGlobalOptions, commandOpts runcExecOptions) error { + r.RuncExec(c, cmd, globalOpts, commandOpts) + return nil +} |