summaryrefslogtreecommitdiff
path: root/op-mode-definitions/containers.xml.in
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-08-22 20:35:46 +0200
committerChristian Poessinger <christian@poessinger.com>2021-08-22 20:39:26 +0200
commita1873a39f4fb9e8445b772b3fc1697f55314888a (patch)
treef8ec61398fd119c8b10ea94f538a1223081edbf2 /op-mode-definitions/containers.xml.in
parent17b5ac143c9128ac3e187d8d8167dd8fe6cbca7d (diff)
downloadvyos-1x-a1873a39f4fb9e8445b772b3fc1697f55314888a.tar.gz
vyos-1x-a1873a39f4fb9e8445b772b3fc1697f55314888a.zip
container: op-mode: T3765: add "show log container" command
Diffstat (limited to 'op-mode-definitions/containers.xml.in')
-rw-r--r--op-mode-definitions/containers.xml.in13
1 files changed, 13 insertions, 0 deletions
diff --git a/op-mode-definitions/containers.xml.in b/op-mode-definitions/containers.xml.in
index 94dd24369..8cc30d3a8 100644
--- a/op-mode-definitions/containers.xml.in
+++ b/op-mode-definitions/containers.xml.in
@@ -69,6 +69,19 @@
</leafNode>
</children>
</node>
+ <node name="log">
+ <children>
+ <tagNode name="container">
+ <properties>
+ <help>Show logs from a given container</help>
+ <completionHelp>
+ <path>container name</path>
+ </completionHelp>
+ </properties>
+ <command>sudo podman logs --names "$4"</command>
+ </tagNode>
+ </children>
+ </node>
</children>
</node>
<node name="restart">