hyperledger-fabric 1.1无法安装jq

时间:2018-04-16 07:27:49

标签: docker hyperledger-fabric

我一直在尝试使用第一个网络中的./eyfn.sh up脚本将第三个组织添加到现有通道中。但是,Jq安装失败如下:

Installing jq
Err:1 http://archive.ubuntu.com/ubuntu xenial InRelease
  Temporary failure resolving 'archive.ubuntu.com'
Err:2 http://security.ubuntu.com/ubuntu xenial-security InRelease
  Temporary failure resolving 'security.ubuntu.com'
Err:3 http://archive.ubuntu.com/ubuntu xenial-updates InRelease
  Temporary failure resolving 'archive.ubuntu.com'

如何解决此错误?任何帮助将不胜感激。

1 个答案:

答案 0 :(得分:0)

终于找到了解决方案。

Step 1:

Before you pull up docker-compose.yml add extra hosts in your cli container
(This will configure hosts in the container in addition to default)

 extra_hosts:
      - "proxy.xxx.com:ipAddress Of proxy"

Step 2 :

create an apt.conf file in your local directory mentioning your proxy in format :



 Acquire::http::proxy "http://proxy.company.com:80/";
    Acquire::https::proxy "http://proxy.company.com:80/";
    Acquire::ftp::proxy "ftp://proxy.company.com:80/";
    Acquire::socks::proxy "socks://proxy.company.com:80/";

copy this file  from local directory to your cli using command :

docker cp apt.conf <containerId>:/etc/apt