我不确定这是一个bug,还是只是我的愚蠢,但情况是这样的。
我想要建立我的形象基于StandaloneChromeDebug。跟随维基
$ make standalone_chrome_debug$ docker build --no-cache etc/docker-selenium/StandaloneChromeDebug/selenium-hub:
container_name: selenium-hub
build: ./etc/docker-selenium/StandaloneChromeDebug/
volumes:
- /dev/shm:/dev/shm
ports:
- "4444:4444"
- "5900:5900"
environment:
- HUB_HOST=selenium-hub
- HUB_PORT=4444还有..。没什么。容器正在运行(没有errros),但Selenium不工作,容器日志为空,/opt/文件夹为空。我做错什么了?如何调试这个东西?
发布于 2019-08-27 21:47:31
路径错误,请使用不带build: /etc/docker-selenium/StandaloneChromeDebug/ .的
如果您试图cd到./etc/docker-selenium/StandaloneChromeDebug/,您将得到一个错误。
version: "3.5"
services:
selenium-hub:
container_name: selenium-hub
build: /etc/docker-selenium/StandaloneChromeDebug/
volumes:
- /dev/shm:/dev/shm
ports:
- "4444:4444"
- "5900:5900"
environment:
- HUB_HOST=selenium-hub
- HUB_PORT=4444Exapmle:

发布于 2019-08-27 09:03:10
https://stackoverflow.com/questions/57605684
复制相似问题