summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-08-22 20:51:34 +0200
committerChristian Poessinger <christian@poessinger.com>2021-08-22 20:51:34 +0200
commit1b0d7b9e027672a95535d18e550919aff7e41ee3 (patch)
tree1427703bcfb3c66c81cf035d9f082997b36dd646
parent68567d60626aa7ee5f990af792eb63f6887d93de (diff)
downloadvyos-1x-1b0d7b9e027672a95535d18e550919aff7e41ee3.tar.gz
vyos-1x-1b0d7b9e027672a95535d18e550919aff7e41ee3.zip
log
-rw-r--r--op-mode-definitions/containers.xml.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/op-mode-definitions/containers.xml.in b/op-mode-definitions/containers.xml.in
index 8cc30d3a8..1ed569407 100644
--- a/op-mode-definitions/containers.xml.in
+++ b/op-mode-definitions/containers.xml.in
@@ -61,6 +61,15 @@
</properties>
<command>sudo ${vyos_op_scripts_dir}/containers_op.py --image</command>
</leafNode>
+ <tagNode name="log">
+ <properties>
+ <help>Show logs from a given container</help>
+ <completionHelp>
+ <path>container name</path>
+ </completionHelp>
+ </properties>
+ <command>sudo podman logs --names "$4"</command>
+ </tagNode>
<leafNode name="network">
<properties>
<help>Show available container networks</help>