简体   繁体   English

无法将 fabric8 与 docker for windows 一起使用

[英]Unable to use fabric8 with docker for windows

Seems like there might be something i dont understand.好像有什么我不明白的地方。

I configured my pom.xml with <dockerHost>tcp://localhost:2375</dockerHost>我用<dockerHost>tcp://localhost:2375</dockerHost>配置了我的 pom.xml

Everything is ok for build / deploy.构建/部署一切正常。

But it seems fabric8 plugin (v3.5.31) is not configurable with docker for windows : https://store.docker.com/editions/community/docker-ce-desktop-windows so impossible to use fabric8:start但似乎fabric8 插件(v3.5.31)不能用docker for windows 配置: https ://store.docker.com/editions/community/docker-ce-desktop-windows 所以不可能使用fabric8:start

Tryed DOCKER_HOST env, no go.尝试了 DOCKER_HOST 环境,不行。

Am i missing something?我错过了什么吗? Do i really need to install with gofabric8?我真的需要用 gofabric8 安装吗? (wich does not work anyway) The docker engine is all there, i am unable to find any documentation on this sadly. (无论如何都不起作用)docker引擎就在那里,遗憾的是我找不到任何关于此的文档。 There should be a way to configure it to use the parameter!应该有办法配置它使用参数!

Thanks.谢谢。

The dockerHost in the case for windows is not http://localhost:2375 . Windows 情况下的 dockerHost 不是http://localhost:2375 You need to find the IP of the VM were docker is running.您需要找到正在运行 docker 的 VM 的 IP。 This can be found by running the command docker-machine env <machine-name> .这可以通过运行命令docker-machine env <machine-name> This will give you the correct DOCKER_HOST that needs to be used.这将为您提供需要使用的正确DOCKER_HOST

Alternatively, there is a feature for windows in this plugin that allows you to not specify a dockerHost and rather locate a docker-machine or create a new one, and use the docker server running on that machine.或者,此插件中有一项适用于 Windows 的功能,允许您不指定 dockerHost,而是定位 docker-machine 或创建一个新机器,并使用在该机器上运行的 docker 服务器。 Take a look at this pull request for more info查看此拉取请求以获取更多信息

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

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