From e8a32e3722e0b814c654cdb8809565a21fc120d3 Mon Sep 17 00:00:00 2001 From: baude Date: Tue, 28 Nov 2017 16:25:01 -0600 Subject: kpod exec Initial wiring of kpod exec. We wont support the following options for exec: * detach -- unsure of use case * detach-keys -- not supported by runc * interactive -- all terminals will be interactive Not adding exec tests as we need to think about how to support a test that requires console access but our CI tests have no console. Signed-off-by: baude --- libpod/oci.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libpod/oci.go') 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 +} -- cgit v1.2.3-54-g00ecf