如何在 aerokube selenoid docker 映像上启动文件服务器



我已经按照帖子 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 时看不到任何配置选项?我是否必须创建一个具有文件服务器支持的新 Docker 映像?

它应该自动启动。但是,目前只有所有浏览器图像的最后 2 个版本被更新以包含所需的二进制文件(例如selenoid/chrome:65.0selenoid/chrome:66.0(。这将在下周内修复 - 当其余映像重建时。

相关内容

  • 没有找到相关文章

最新更新