Tag: 幻影

Docker PhantomJS 2容器突然停止

我正在使用phantomjsdocker集装箱,最新版本的wernight / phantomjs。 这里是链接。 https://hub.docker.com/r/wernight/phantomjs/问题是, 当我启动容器时,经过一段时间(2-3天),容器突然停止,出现错误。 任何人有任何想法或build议? 我使用现有的容器。 ERROR – 2017-08-29T05:26:36.534Z] RouterReqHand – _handle.error – {"stack":"evaluateJavaScript@[native code]\nevaluate@phantomjs://platform/webpage.js:390:39\n_getTextCommand@phantomjs://code/webelement_request_handler.js:341:90\n_handle@phantomjs://code/webelement_request_handler.js:102:28\n_reroute@phantomjs://code/session_request_handler.js:61:20\n_handle@phantomjs://code/session_request_handler.js:120:42\n_reroute@phantomjs://code/request_handler.js:61:20\n_handle@phantomjs://code/router_request_handler.js:78:46","line":390,"sourceURL":"phantomjs://platform/webpage.js"} phantomjs://platform/console++.js:263 in error 1 0x1b67967 phantomjs() [0x1b67967] 2 0x1b800a9 phantomjs() [0x1b800a9] 3 0x92035b phantomjs() [0x92035b] 4 0x13b9e20 phantomjs() [0x13b9e20] 5 0x13b9f2a phantomjs() [0x13b9f2a] 6 0x13bb9c1 phantomjs() [0x13bb9c1] 7 0x13bcaa4 phantomjs() [0x13bcaa4] 8 0x13bcb6c phantomjs() [0x13bcb6c] 9 0x97bf27 phantomjs() […]

在Docker容器中运行的PhantomJS服务器

我需要运行PhantomJS服务器按需生成图像。 当我在一个标准的Amazon Linux EC2实例上设置它时,它工作正常。 不过,我想将其分发到Docker容器中。 使用Amazon Linux基础( http://docs.aws.amazon.com/AmazonECR/latest/userguide/amazon_linux_container_image.html )我包含以下RPMS: RUN \ yum update && \ yum install -y tar \ yum install -y bzip2 \ yum install -y freetype6 \ yum install -y fontconfig \ yum install -y freetype-devel \ yum install -y fontconfig-devel \ yum install -y libicu-devel \ yum install -y libpng-devel \ […]