1

我已按照帖子https://medium.com/@aandryashin/selenium-done-in-60-seconds-176796f8bdc7的说明使用 Selenoid 进行说明。

我能够启动并运行 docker 映像并进行连接。

2018/05/07 06:24:15 Loading configuration files...
2018/05/07 06:24:15 Loaded configuration from [/etc/selenoid/browsers.json]
2018/05/07 06:24:15 Using default containers log configuration because of: read error: open config/container-logs.json: no such file or directory
2018/05/07 06:24:15 Timezone: Local
2018/05/07 06:24:15 Listening on :4444
2018/05/07 08:45:12 [NEW_REQUEST]
2018/05/07 08:45:12 [NEW_REQUEST_ACCEPTED]
2018/05/07 08:45:12 Locating the service for chrome 
2018/05/07 08:45:12 Using default version: 66.0
2018/05/07 08:45:12 Using docker service for chrome 66.0
2018/05/07 08:45:12 Creating Docker container selenoid/chrome:66.0 ...
2018/05/07 08:45:12 [STARTING_CONTAINER]
2018/05/07 08:45:13 [CONTAINER_STARTED] [a11420c1b6539c0121002b3e8318b726f58f8056aa23e04c011330c476963550] [807.78967ms]
2018/05/07 08:45:14 [SERVICE_STARTED] [a11420c1b6539c0121002b3e8318b726f58f8056aa23e04c011330c476963550] [907.160923ms]
2018/05/07 08:45:14 proxying requests to: http://172.17.0.3:4444/
2018/05/07 08:45:14 [SESSION_ATTEMPTED] [http://172.17.0.3:4444/] [1]
2018/05/07 08:45:18 [SESSION_CREATED] [b71385f73d6cc48febcb357abe3246cf] [http://172.17.0.3:4444/]
2018/05/07 08:45:36 [SESSION_DELETED] [b71385f73d6cc48febcb357abe3246cf]
2018/05/07 08:45:36 [REMOVE_CONTAINER] [a11420c1b6539c0121002b3e8318b726f58f8056aa23e04c011330c476963550]
2018/05/07 08:45:36 [CONTAINER_REMOVED] [a11420c1b6539c0121002b3e8318b726f58f8056aa23e04c011330c476963550]
2018/05/07 08:46:07 [NEW_REQUEST]
2018/05/07 08:46:07 [NEW_REQUEST_ACCEPTED]
2018/05/07 08:46:07 Locating the service for chrome 
2018/05/07 08:46:07 Using default version: 66.0
2018/05/07 08:46:07 Using docker service for chrome 66.0
2018/05/07 08:46:07 Creating Docker container selenoid/chrome:66.0 ...
2018/05/07 08:46:07 [STARTING_CONTAINER]
2018/05/07 08:46:07 [CONTAINER_STARTED] [d6f151bcad639271922fe65182b0e09fd1a4fbfdcc0b8b4374da02f2f5b1d69d] [410.578697ms]
2018/05/07 08:46:08 [SERVICE_STARTED] [d6f151bcad639271922fe65182b0e09fd1a4fbfdcc0b8b4374da02f2f5b1d69d] [142.662491ms]
2018/05/07 08:46:08 proxying requests to: http://172.17.0.3:4444/
2018/05/07 08:46:08 [SESSION_ATTEMPTED] [http://172.17.0.3:4444/] [1]
2018/

现在我想使用文件下载功能。我的问题是如何在端口 8080 上启动文件服务器,因为在运行 Docker 时我没有看到任何配置选项?我是否必须创建一个具有 FileServer 支持的新 Docker 映像?

4

1 回答 1

0

它应该自动启动。然而,现在只有最后 2 个版本的所有浏览器图像被更新以包含所需的二进制文件(例如selenoid/chrome:65.0selenoid/chrome:66.0)。这将在接下来的几周内得到解决——当其余的图像被重建时。

于 2018-05-08T04:12:48.803 回答