如何在aerokube selenoid docker图像上启动fileserver

时间:2018-05-07 10:19:12

标签: docker selenoid

我已按照帖子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/

现在我想使用文件download feature。 我的问题是如何在端口8080上启动fileServer,因为在运行Docker时我没有看到任何配置选项?我是否必须使用FileServer支持创建新的Docker镜像?

1 个答案:

答案 0 :(得分:0)

它应该自动启动。但是现在只更新所有浏览器图像的最后2个版本以包含所需的二进制文件(例如selenoid/chrome:65.0selenoid/chrome:66.0)。这将在接下来的几周内得到修复 - 其余的图像都会重建。