python-3.x - 在Windows 10上的Docker Toolbox上运行Splash

标签 python-3.x docker scrapy scrapy-splash

我正在尝试使用Windows 10 Home安装并运行启动程序。我已经安装了docker工具箱,因为在Windows 10 Home上您无法安装docker。然后在命令提示符下键入

docker pull scrapinghub/splash

我得到错误
error during connect: Post http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.40/images/create?fromImage=scrapinghub%2Fsplash&tag=latest: open //./pipe/docker_engine: The system cannot find the file specified. In the default daemon configuration on Windows, the docker client must be run elevated to connect. This error may also indicate that the docker daemon is not running.

我注意到的一件有趣的事情是,如果我运行Docker Quickstart Terminal,则可以使用以下命令安装splash
docker pull scrapinghub/splash

然后使用命令
docker run -p 5023:5023 -p 8050:8050 -p 8051:8051 scrapinghub/splash

它给了我

服务器在http://0.0.0.0:8050上侦听

但是,当我将http://0.0.0.0:8050粘贴到Chrome中时,它提示我“无法访问此网站”。

谢谢

最佳答案

因此,第一个错误明确表明您的Docker容器未运行,因此您的pull命令失败

您可以通过运行任何docker命令进行检查,也可以尝试执行此操作

docker --version

对于第二个查询,您需要使用Docker IP来访问应用程序

您可以尝试docker-machine ip来查看正在运行哪个IP docker(假设已安装docker-machine)。

通常,在Windows上,Docker IP为192.168.99.100
试试这些2
192.168.99.100:8050

要么
localhost:8050

关于python-3.x - 在Windows 10上的Docker Toolbox上运行Splash,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59800056/

相关文章:

python - 如何使 2 个列表相互对应?

docker - 使用 Docker 和 Traefik 的反向代理微服务

ruby-on-rails - Rails docker中的delay_job无法正常工作

web-scraping - Scrapy,如何更改输入表单中的值,提交然后抓取页面

Python 3 将包含字母的字符串中的数字总数相加

python - `iter(callable, sentinel)` 仍然是 Pythonic 吗?

database - Golang(带 gocql 驱动程序)不返回 Cassandra DB 中的所有条目

python - Scrapy - 在shell和spider中处理ajax连续响应数据

python - Scrapy无法通过ID选择

android - 使用 buildozer kivy 的 800mb apk 文件