我正在尝试使用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/