简体   繁体   English

使用 Windows 10 在 Docker Toolbox 上运行 Splash

[英]Running Splash on Docker Toolbox with Windows 10

I am trying to install and run splash on using Windows 10 Home.我正在尝试使用 Windows 10 Home 安装和运行 splash。 I have installed docker toolbox, as on windows 10 Home you can't install docker.我已经安装了 docker 工具箱,因为在 Windows 10 Home 上你不能安装 docker。 Then in command prompt when I type然后在我输入时在命令提示符中

docker pull scrapinghub/splash

I get the error我收到错误

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.

One interesting thing I noticed was that if I run Docker Quickstart Terminal I can install splash with the command我注意到的一件有趣的事情是,如果我运行 Docker Quickstart Terminal,我可以使用以下命令安装 splash

docker pull scrapinghub/splash

and then using the command然后使用命令

docker run -p 5023:5023 -p 8050:8050 -p 8051:8051 scrapinghub/splash

it gives me它给了我

server listening on http://0.0.0.0:8050服务器监听http://0.0.0.0:8050

But then when I paste http://0.0.0.0:8050 into Chrome it gives me "This site can't be reached."但是当我将http://0.0.0.0:8050粘贴到 Chrome 中时,它给了我“无法访问此站点”。

Thanks谢谢

So 1st error clearly says that your Docker container is not running, so your pull command fails所以第一个错误清楚地表明你的 Docker 容器没有运行,所以你的 pull 命令失败了

You can check by running any docker command maybe try this您可以通过运行任何 docker 命令来检查也许试试这个

docker --version

For your 2nd query, you need to use Docker IP, to access the application对于您的第二个查询,您需要使用 Docker IP 来访问应用程序

You can try docker-machine ip to see, on what IP docker is running (Assuming docker-machine is installed)您可以尝试使用docker-machine ip来查看 docker 正在运行的 IP(假设已安装 docker-machine)

Generally, on windows Docker IP is 192.168.99.100通常,Windows 上的 Docker IP 是192.168.99.100

Try these 2试试这2个

192.168.99.100:8050

or或者

localhost:8050

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM