我有相当复杂的设置
- Luigi https://github.com/spotify/luigi https://github.com/spotify/luigi
- https://github.com/kennethreitz/requests-html https://github.com/kennethreitz/requests-html
- and https://github.com/miyakogi/pyppeteer https://github.com/miyakogi/pyppeteer
但长话短说 - 在我的本地 Ubuntu (17.10) 桌面上一切正常,但是当通过 docker-compose(1.18.0) 在 Docker(18.03.0-ce) 中运行时(配置版本 3.3,这里有一些相关详细信息)https://github.com/miyakogi/pyppeteer/issues/14 https://github.com/miyakogi/pyppeteer/issues/14)它因Python产生的僵尸chrome进程而膨胀。
有什么想法可能会发生这种情况以及如何处理吗?
尝试安装dumb-init:https://github.com/Yelp/dumb-init https://github.com/Yelp/dumb-init(在 alpine 和 debian 中均可用)在容器内并将其用作入口点(更多阅读此处:https://blog.phusion.nl/2015/01/20/docker-and-the-pid-1-zombie-reaping-problem/ https://blog.phusion.nl/2015/01/20/docker-and-the-pid-1-zombie-reaping-problem/)
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)