Hyperledger composer network install

≯℡__Kan透↙ 提交于 2019-12-02 10:01:36
rbo13

Make sure docker is running

From their documentation, Installing pre-requisites

Docker is required.

Then try docker ps, check if the peer node/s is listed.

Then try to ping your network with composer network ping --card admin@<some_network>

  1. Check if docker login is working. If not,

    docker-machine ssh default
    sudo vi /etc/resolv.conf
    

    change nameserver to 8.8.8.8

  2. Using composer-cli at v0.19.5 Add this in fabric-scripts\hlfv11\createPeerAdminCard.sh

    CYGDIR="$(cygpath -pw "$DIR")"
    if [[ ! -v DOCKER_HOST ]]; then
    echo "DOCKER_HOST is NOT set <<<< Please set the env for Docker !!!!"
    DOCKER_IP="localhost"
    else
    DOCKER_IP="${DOCKER_HOST:6}"
    INDEX=`expr index "${DOCKER_IP}" :`
    echo $INDEX
    DOCKER_IP="${DOCKER_IP:0:(INDEX-1)}"
    fi
    echo  "Using the Docker VM IP Address: ${DOCKER_IP}"
    

    And replaced every localhost in the file with $DOCKER_IP

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!