osixia / docker-keepalived

Keepalived container image 🐳🌴
MIT License
402 stars 146 forks source link

many core files created #6

Closed xchkun closed 7 years ago

xchkun commented 7 years ago

when I run "docker run -itd --name keepalived --cap-add=NET_ADMIN --net host -v /root/keepalived/keepalived.conf:/container/service/keepalived/assets/keepalived.conf:rw osixia/keepalived --copy-service" in system:centos7 docker logs containerId:the logs as follow: Keepalived[53]: immediately before the crash, and your configuration file. Healthcheck child process(941) died: Respawning Keepalived[53]: Healthcheck child process(941) died: Respawning Starting Healthcheck child process, pid=943 Keepalived[53]: Starting Healthcheck child process, pid=943 Initializing ipvs Keepalived_healthcheckers[943]: Initializing ipvs modprobe: can't change directory to '/lib/modules': No such file or directory IPVS: Can't initialize ipvs: Protocol not available Keepalived_healthcheckers[943]: IPVS: Can't initialize ipvs: Protocol not available Keepalived_healthcheckers exited due to segmentation fault (SIGSEGV). Keepalived[53]: Keepalived_healthcheckers exited due to segmentation fault (SIGSEGV). Please report a bug at https://github.com/acassen/keepalived/issues Keepalived[53]: Please report a bug at https://github.com/acassen/keepalived/issues and include this log from when keepalived started, what happened Keepalived[53]: and include this log from when keepalived started, what happened immediately before the crash, and your configuration file. Keepalived[53]: immediately before the crash, and your configuration file. Healthcheck child process(943) died: Respawning Keepalived[53]: Healthcheck child process(943) died: Respawning Starting Healthcheck child process, pid=945 Keepalived[53]: Starting Healthcheck child process, pid=945 Initializing ipvs Keepalived_healthcheckers[945]: Initializing ipvs modprobe: can't change directory to '/lib/modules': No such file or directory IPVS: Can't initialize ipvs: Protocol not available Keepalived_healthcheckers[945]: IPVS: Can't initialize ipvs: Protocol not available Keepalived_healthcheckers exited due to segmentation fault (SIGSEGV). ^Cepalived[53]: Keepalived_healthcheckers exited due to segmentation fault (SIGSEGV).

and when I run "docker exec -it containerId sh", execute "ls" command ,there are many core files created: core.12132 core.14300 core.16472 core.18640 core.20810 core.2298 core.3460 core.5656 core.7828 core.9996 core.12134 core.14302 core.16474 core.18642 core.20812 core.22980 core.3462 core.5658 core.783 core.9998 core.12136 core.14304 core.16476 core.18644 core.20814 core.22982 core.3464 core.5660 core.7830 dev core.12138 core.14306 core.16478 core.18646 core.20816 core.22984 core.3466 core.5662 core.7832 etc core.1214 core.14308 core.1648 core.18648 core.20818 core.22986 core.3468 core.5664 core.7834 home core.12140 core.14310 core.16480 core.18650 core.2082 core.22988 core.347 core.5666 core.7836 lib core.12142 core.14312 core.16482 core.18652 core.20820 core.22990 core.3470 core.5668 core.7838 media core.12144 core.14314 core.16484 core.18654 core.20822 core.22992 core.3472 core.567 core.7840 mnt core.12146 core.14316 core.16486 core.18656 core.20824 core.22994 core.3474 core.5670 core.7842 proc core.12148 core.14318 core.16488 core.18658 core.20826 core.22996 core.3476 core.5672 core.7844 root core.12150 core.1432 core.16490 core.1866 core.20828 core.22998 core.3478 core.5674 core.7846 run core.12152 core.14320 core.16492 core.18660 core.20830 core.2300 core.3480 core.5676 core.7848 sbin core.12154 core.14322 core.16494 core.18662 core.20832 core.23000 core.3482 core.5678 core.785 srv core.12156 core.14324 core.16496 core.18664 core.20834 core.23002 core.3484 core.5680 core.7850 sys core.12158 core.14326 core.16498 core.18666 core.20836 core.23004 core.3486 core.5682 core.7852 tmp core.1216 core.14328 core.165 core.18668 core.20838 core.23006 core.3488 core.5684 core.7854 usr core.12160 core.14330 core.1650 core.18670 core.2084 core.23008 core.349 core.5686 core.7856 var

xchkun commented 7 years ago

I know the reason: not execute the cmd "modprobe ip_vs" to load ”ip_vs” module ,execute the cmd the problem resolved。