aboutsummaryrefslogtreecommitdiff
path: root/libpod/oci.go
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2017-12-11 10:41:58 -0600
committerGitHub <noreply@github.com>2017-12-11 10:41:58 -0600
commit0e328de08dc6e17b4cc45b1bf47f2deddb3fef6d (patch)
tree8b88407b645e9403f4fc7ebf2e4d62bc34785a20 /libpod/oci.go
parent8d31ec2ad775c97c4b860eb24a3481092b6e88e3 (diff)
parente8a32e3722e0b814c654cdb8809565a21fc120d3 (diff)
downloadpodman-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.go6
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
+}