diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-08-22 20:35:46 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-08-22 20:39:26 +0200 |
commit | a1873a39f4fb9e8445b772b3fc1697f55314888a (patch) | |
tree | f8ec61398fd119c8b10ea94f538a1223081edbf2 /op-mode-definitions/containers.xml.in | |
parent | 17b5ac143c9128ac3e187d8d8167dd8fe6cbca7d (diff) | |
download | vyos-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.in | 13 |
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"> |