【问题标题】:cisco ioxclient docker package command error: An address incompatible with the requested protocol was usedcisco ioxclient docker package 命令错误:使用了与请求的协议不兼容的地址
【发布时间】:2018-12-03 02:06:46
【问题描述】:

我试图按照教程 here 从 docker 映像创建 Cisco IoX 包。

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

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 专业版,Docker:18.09.0

【问题讨论】:

    标签: docker cisco


    【解决方案1】:

    问题在于 IoX 用于访问 docker 守护进程的协议。 默认协议是unix,所以在默认设置下,IoX访问unix /var/run/docker.sock

    要将其更改为 windows 协议,change the setting 通过运行以下命令:

    ioxclient docker init
    

    然后在出现提示时,按照in this article

    的说明填写 windows URL
    Enter the URI for the Docker daemon to use[unix:///var/run/docker.sock]: npipe:////./pipe/docker_engine
    

    对于 API,请将运行在您机器上的 docker API 的版本(要找到它,打开另一个 shell 并运行 docker version,您将看到 API 版本。请参阅 documentation

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

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

    ioxclient package 命令现在应该可以工作了。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-01-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-12-03
      • 1970-01-01
      相关资源
      最近更新 更多