How to check syslog for ubuntu docker

I installed tutum/ubuntuvm in the local docker.

When I log in ubuntuand execute the command below.

logger "Test Logging"

I can not find the file in which it was registered. On my local system, I see a file system.logor syslogor messagesin /var/log. But when I check /var/login the container, I can not find such a file.

root@fbc4ae457ad9:~# ls -al /var/log/
total 316
drwxrwxr-x  6 root syslog   4096 Jun 20 16:49 .
drwxr-xr-x 16 root root     4096 Jun 20 16:42 ..
-rw-r--r--  1 root root     9174 Mar 17 15:17 alternatives.log
drwxr-xr-x  2 root root     4096 Mar 17 15:17 apt
-rw-r--r--  1 root root    47816 Mar 15 04:34 bootstrap.log
-rw-rw----  1 root utmp      768 Jun 20 16:49 btmp
-rw-r-----  1 root adm        31 Mar 15 04:34 dmesg
-rw-r--r--  1 root root   213169 Mar 17 15:17 dpkg.log
-rw-r--r--  1 root root     3296 Mar 17 15:17 faillog
drwxr-xr-x  2 root root     4096 Mar 15 04:34 fsck
-rw-rw-r--  1 root utmp    30076 Jun 20 16:53 lastlog
drwxr-xr-x  2 root root     4096 Apr 11  2014 upstart
-rw-rw-r--  1 root utmp     1920 Jun 20 16:53 wtmp

I check upstartanother directory too, but they are all empty.

Which file should I check for systemlog?

+4
source share
1 answer

Rsyslogd is not installed by default, and you are not using this image.

rsyslogd , / Dockerfile.

RUN apt-get -y install rsyslog

, , , .

+2

All Articles