summaryrefslogtreecommitdiff
path: root/compose/container.py
diff options
context:
space:
mode:
authorTomas Tomecek <ttomecek@redhat.com>2015-09-10 13:17:55 +0200
committerTomas Tomecek <ttomecek@redhat.com>2016-02-29 10:50:09 +0100
commitd28c5dda9294d1f6824207aba7ac210e1e3fc3f8 (patch)
tree0a664b5acd5439ceb5ab6f7db3dcd2eda5a3eec7 /compose/container.py
parent1502c5a14d68251311b3bd3e89caa1f899fc19ca (diff)
implement exec
Resolves #593 Signed-off-by: Tomas Tomecek <ttomecek@redhat.com>
Diffstat (limited to 'compose/container.py')
-rw-r--r--compose/container.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/compose/container.py b/compose/container.py
index c96b63ef..6dac9499 100644
--- a/compose/container.py
+++ b/compose/container.py
@@ -216,6 +216,12 @@ class Container(object):
def remove(self, **options):
return self.client.remove_container(self.id, **options)
+ def create_exec(self, command, **options):
+ return self.client.exec_create(self.id, command, **options)
+
+ def start_exec(self, exec_id, **options):
+ return self.client.exec_start(exec_id, **options)
+
def rename_to_tmp_name(self):
"""Rename the container to a hopefully unique temporary container name
by prepending the short id.