>  Q&A  >  본문

selenium - Docker启动Firefox或者Chrome时出现的xvfb错误

  1. 问题是我用docker来运行selenium-hub加node-firefox-debug镜像,会出现node-firefox-debug启动错误,导致无法连接到hub节点。

  2. 错误截图如下:
    docker ps 10:14:01

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
da8c2598666f selenium/hub "/opt/bin/entry_point" 2 days ago Up 4 minutes 0.0.0.0:32768->4444/tcp selenium-hub
wangyang  wangyangdeMacBook-Pro  ~  %  docker run -d -P --link selenium-hub:hub selenium/node-firefox-debug  10:14:06
e64d6282f71cca5e6c41d24acf7539439c314fd99e562d494b1a546609af034b
wangyang  wangyangdeMacBook-Pro  ~  %  docker ps  10:14:12
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
e64d6282f71c selenium/node-firefox-debug "/opt/bin/entry_point" 3 seconds ago Up 2 seconds 0.0.0.0:32771->5900/tcp elegant_varahamihira
da8c2598666f selenium/hub "/opt/bin/entry_point" 2 days ago Up 4 minutes 0.0.0.0:32768->4444/tcp selenium-hub
wangyang  wangyangdeMacBook-Pro  ~  %  docker logs e64d  10:14:14
Waiting xvfb...
-bash: 169.254/16: No such file or directory
Waiting xvfb...
Waiting xvfb...
Waiting xvfb...
Waiting xvfb...
Waiting xvfb...
Waiting xvfb...
Waiting xvfb...
Waiting xvfb...
Waiting xvfb...

伊谢尔伦伊谢尔伦2758일 전922

모든 응답(0)나는 대답할 것이다

답장 없음
  • 취소회신하다