cisco ioxclient docker软件包命令错误:使用了与请求的协议不兼容的地址 [英] cisco ioxclient docker package command error: An address incompatible with the requested protocol was used

查看:126
本文介绍了cisco ioxclient docker软件包命令错误:使用了与请求的协议不兼容的地址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在按照教程此处

当我运行命令 ioxclient docker package -a leonardab / iox-test:latest。时,我得到了出现以下错误:

when I ran the command ioxclient docker package -a leonardab/iox-test:latest . , I got the following error:

Could not retrieve requested Docker image.
Error occurred :  dial unix /var/run/docker.sock: socket: An address incompatible with the requested protocol was used.

操作系统:Windows 10 Pro,Docker:18.09.0

OS: Windows 10 Pro, Docker: 18.09.0

推荐答案

问题出在IoX用于访问docker守护程序的协议中。
默认协议为unix,因此在默认设置中,IoX访问 unix /var/run/docker.sock

The problem is in the protocol used by IoX to access the docker daemon. The default protocol is unix, so in the default setting, IoX access unix /var/run/docker.sock

要将其更改为Windows协议,请更改通过运行以下命令来设置

To change it into windows protocol, change the setting by running the following command:

ioxclient docker init

然后在出现提示时,按照本文中

then when prompted, fill in the windows URL as explained in this article

Enter the URI for the Docker daemon to use[unix:///var/run/docker.sock]: npipe:////./pipe/docker_engine

对于API,请将运行中的docker API版本放到您的机器上(以查找此文件出来,打开另一个外壳并运行 docker version ,您将看到API版本。请参见文档

For the API, put the version of the docker API running on your machine (to find this out, open another shell and run docker version, you 'll see the API version. see documentation)

Enter the API version that the target daemon is running[v1.22]: 1.39

(用您自己的API版本替换1.39。 )

(replace 1.39 with your own API version. )

ioxclient软件包命令现在应该可以使用。

The ioxclient package command should work now.

这篇关于cisco ioxclient docker软件包命令错误:使用了与请求的协议不兼容的地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆