From 61fb39ebeaf8649054858ffc0dc9cd61a3af1670 Mon Sep 17 00:00:00 2001 From: jpic Date: Fri, 28 Aug 2020 18:37:25 +0200 Subject: [PATCH] Add container inspect --- shlax/container.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/shlax/container.py b/shlax/container.py index 4daa2ba..df75e14 100644 --- a/shlax/container.py +++ b/shlax/container.py @@ -80,8 +80,12 @@ class Container: """Start the container""" await target.exec('podman', 'stop', self.full_name) + async def inspect(self, target): + """Inspect container""" + await target.exec('podman', 'inspect', self.full_name) + async def logs(self, target): - """Start the container""" + """Show container logs""" await target.exec('podman', 'logs', self.full_name) async def exec(self, target, cmd=None):