From 782ae18e3b9262ffe675cee083ebd827e9c6c987 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Wed, 20 Aug 2014 20:55:11 +0200 Subject: [PATCH] Mic92 created page: home --- home.markdown | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/home.markdown b/home.markdown index 38bae7a..300f2e6 100644 --- a/home.markdown +++ b/home.markdown @@ -63,3 +63,13 @@ $ lxc-attach -n # login $ systemctl start lxc@ # start container $ systemctl stop lxc@ # stop container ``` + +## Get logs + +lxc-log + +example: +```bash +$ lxc-log mail postfix # get logs of postfix service in the mail container +$ lxc-log mail postfix -f # Additional parameter are passed to journalctl +```