diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2018-06-01 11:41:16 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-01 11:41:16 -0400 |
commit | 3f29e3e88110fd1a1c0b7d2058aa2c89dbb89c40 (patch) | |
tree | 8c52d190cf29a0d4f5fe958ada4c0e15ecfeebdd /contrib/python/podman/libs/containers.py | |
parent | ff3b46e769bc9a064ee8f45b9dbff8795d94bb7a (diff) | |
parent | 2cb881fa58a6a8fe6c89ec2885f01ebb3d74d871 (diff) | |
download | podman-3f29e3e88110fd1a1c0b7d2058aa2c89dbb89c40.tar.gz podman-3f29e3e88110fd1a1c0b7d2058aa2c89dbb89c40.tar.bz2 podman-3f29e3e88110fd1a1c0b7d2058aa2c89dbb89c40.zip |
Merge pull request #869 from jwhonce/wip/attach
Implement container attach
Diffstat (limited to 'contrib/python/podman/libs/containers.py')
-rw-r--r-- | contrib/python/podman/libs/containers.py | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/contrib/python/podman/libs/containers.py b/contrib/python/podman/libs/containers.py index 96ec6be37..a350a128a 100644 --- a/contrib/python/podman/libs/containers.py +++ b/contrib/python/podman/libs/containers.py @@ -6,8 +6,10 @@ import json import signal import time +from ._containers_attach import Mixin as AttachMixin -class Container(collections.UserDict): + +class Container(collections.UserDict, AttachMixin): """Model for a container.""" def __init__(self, client, id, data): @@ -46,12 +48,6 @@ class Container(collections.UserDict): with self._client() as podman: return self._refresh(podman) - def attach(self, detach_key=None, no_stdin=False, sig_proxy=True): - """Attach to running container.""" - with self._client() as podman: - # TODO: streaming and port magic occur, need arguments - podman.AttachToContainer() - def processes(self): """Show processes running in container.""" with self._client() as podman: |