Host: Linux 192-168-1-129 3.10.0-1127.el7.x86_64 #1 SMP Tue Mar 31 23:36:51 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
docker: alpine:edge
suricata in docker
The suricata container is running and constantly restarts itself(suricata 容器不断地自行重启). I found the logs by doing grep -i “suricata” /var/log/messages(我通过执行:grep -i “suricata” /var/log/messages,发现了下面这些日志),How should I solve this problem(我应该怎么解决这个问题)
Oct 30 03:50:53 192-168-1-129 kernel: W#04-eth0[9853]: segfault at 7ff542d3a7c8 ip 000056420dcda3ae sp 00007ff542d3a7d0 error 6 in suricata[56420dc31000+2e6000]
Oct 30 11:24:39 192-168-1-129 kernel: W#07-eth0[27281]: segfault at 7fa59f63cc48 ip 000055ff2221b3ae sp 00007fa59f63cc50 error 6 in suricata[55ff22172000+2e6000]
Oct 30 16:25:03 192-168-1-129 kernel: W#06-eth0[22722]: segfault at 7f9e5095aee8 ip 0000555d7f58937d sp 00007f9e5095aef0 error 6 in suricata[555d7f454000+2e6000]
Oct 30 16:52:13 192-168-1-129 kernel: W#01-eth0[31148]: segfault at 7f1272ca6c58 ip 00005652fd98b3ae sp 00007f1272ca6c60 error 6 in suricata[5652fd8e2000+2e6000]
Oct 31 10:47:49 192-168-1-129 kernel: W#05-eth0[26829]: segfault at 7f6f99c88bd8 ip 000055fe533213ae sp 00007f6f99c88be0 error 6 in suricata[55fe53278000+2e6000]
Oct 31 11:37:23 192-168-1-129 kernel: W#03-eth0[27982]: segfault at 7f43c96a4bd8 ip 00005594a42bd3ae sp 00007f43c96a4be0 error 6 in suricata[5594a4214000+2e6000]
Nov 1 10:15:05 192-168-1-129 kernel: W#06-eth0[29508]: segfault at 7fca55919bd8 ip 000055c457fc63ae sp 00007fca55919be0 error 6 in suricata[55c457f1d000+2e6000]
This container seems to work fine for me. You could try running it with --privileged, not something I recommend for production, but it might allow it to work if it’s a resource issue inside the container.
Alternatively, try my container, jasonish/suricata:6.0 and see if that works for you.