Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python script produces zombie processes only in Docker

I have quite complicated setup with

  • Luigi https://github.com/spotify/luigi
  • https://github.com/kennethreitz/requests-html
  • and https://github.com/miyakogi/pyppeteer

But long story short - everything works fine at my local Ubuntu (17.10) desktop, but when run in Docker(18.03.0-ce) via docker-compose(1.18.0) (config version 3.3, some related details here https://github.com/miyakogi/pyppeteer/issues/14) it bloats up with zombie chrome processes spawned from python.

Any ideas why it might happen and what to do with it?

enter image description here

like image 849
scythargon Avatar asked Oct 14 '25 06:10

scythargon


1 Answers

Try installing dumb-init: https://github.com/Yelp/dumb-init (available both in alpine and debian) inside your container and use it as entry point (more reading here: https://blog.phusion.nl/2015/01/20/docker-and-the-pid-1-zombie-reaping-problem/)

like image 125
error Avatar answered Oct 16 '25 23:10

error



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!