我尝试在ubuntu中启动fabcar问题,但是出现错误,我不知道如何解决。
我在阿里云中使用ubuntu,fabric的第一个示例在这里还可以。 当我使用fabcar时,我发现了一个错误“
守护程序的错误响应:容器 66f7dfd7117b8f9e36e937f646e9e865d600a235aa2c57dd9e0dfc7cfbebb753是 没有运行
我已经用过npm install fabric-client
和npm install fabric-ca-client
root@iZ2zefth7vpdr5atlevkrjZ:~/hyperledger-fabric/fabric-samples/fabcar# ./startFabric.sh
# don't rewrite paths for Windows Git Bash users
export MSYS_NO_PATHCONV=1
docker-compose -f docker-compose.yml down
Removing network net_basic
WARNING: Network net_basic not found.
docker-compose -f docker-compose.yml up -d ca.example.com orderer.example.com peer0.org1.example.com couchdb
Creating network "net_basic" with the default driver
Creating orderer.example.com ... done
Creating couchdb ... done
Creating ca.example.com ... done
Creating peer0.org1.example.com ... done
# wait for Hyperledger Fabric to start
# incase of errors when running later commands, issue export FABRIC_START_TIMEOUT=<larger number>
export FABRIC_START_TIMEOUT=10
#echo ${FABRIC_START_TIMEOUT}
sleep ${FABRIC_START_TIMEOUT}
# Create the channel
docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer0.org1.example.com peer channel create -o orderer.example.com:7050 -c mychannel -f /etc/hyperledger/configtx/channel.tx
Error response from daemon: Container 66f7dfd7117b8f9e36e937f646e9e865d600a235aa2c57dd9e0dfc7cfbebb753 is not running
我尝试重新安装Docker,但无济于事。
我发现了有关该错误的新信息:
docker ps -a
显示
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
66f7dfd7117b hyperledger/fabric-peer "peer node start" 31 seconds ago Exited (2) 29 seconds ago peer0.org1.example.com
程序尝试启动容器,但退出。 我该怎么解决?
答案 0 :(得分:0)
确保已将计算机的用户名添加到Docker组