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 +```