Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
251 views
in Technique[技术] by (71.8m points)

cisco ioxclient docker package command error: An address incompatible with the requested protocol was used

I was trying to create a Cisco IoX package from a docker image following the tutorial here.

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.

OS: Windows 10 Pro, Docker: 18.09.0

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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

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

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

(replace 1.39 with your own API version. )

The ioxclient package command should work now.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...