2016-05-13 93 views
1

我的演示項目已經運行好了,但它只是網絡中的一個對等設備。我想在網絡中添加更多的對等點。 我遵循本指南==>https://github.com/hyperledger-archives/fabric/blob/540c4db5f64dba4bd1b18e896c96a8d17d7ec552/docs/dev-setup/devnet-setup.md在Hyperledger Fabric中設置網絡開發v0.5-preview

請親切幫助檢查下面的日誌, 該目錄是錯誤的?或者什麼是正確的方式來運行這個同行的啓動?

[email protected]:v-:/opt/gopath/src/github.com/hyperledger/fabric$ docker run --rm -it -e CORE_VM_ENDPOINT=http://172.17.0.1:2375 -e CORE_PEER_ID=vp0 -e CORE_PEER_ADDRESSAUTODETECT=true hyperledger-peer peer node start 
Unable to find image 'hyperledger-peer:latest' locally 
Pulling repository docker.io/library/hyperledger-peer 
docker: Error: image library/hyperledger-peer not found. 
See 'docker run --help'. 
+0

可以添加你,當你運行'泊塢窗images'你會得到什麼? –

回答

1

是否有可能網絡中的第一個節點在Docker容器中啓動? (例如,它可以作爲使用peer node start的過程開始)

我們可以驗證哪些泊塢窗圖像在流浪機中可用。只要運行docker images命令:

[email protected]:v0.0.9-b4acc4b:$ docker images 
REPOSITORY      TAG     IMAGE ID   CREATED    SIZE 
hyperledger/fabric-baseimage latest    c1d6f4800a55  27 hours ago  1.297 GB 
hyperledger/fabric-baseimage x86_64-0.0.9  70328eed56aa  2 weeks ago   990.1 MB 
busybox      latest    47bcc53f74dc  9 weeks ago   1.113 MB 

有了這樣的配置,當「hyperledger等」形象是不可用,驗證同伴不會因爲「無法找到像」錯誤開始:

[email protected]:v0.0.9-b4acc4b:/opt/gopath/src/github.com/hyperledger/fabric/peer$ docker run --rm -it -e CORE_VM_ENDPOINT=http://172.17.0.1:2375 -e CORE_PEER_ID=vp0 -e CORE_PEER_ADDRESSAUTODETECT=true hyperledger-peer peer node start 
Unable to find image 'hyperledger-peer:latest' locally 
Pulling repository docker.io/library/hyperledger-peer 
docker: Error: image library/hyperledger-peer not found. 

「hyperledger等:最新的」:

cd $GOPATH/src/github.com/hyperledger/fabric/core/container 
go test -run BuildImage_Peer 

現在docker images應該表現出一個更可用的圖像:圖像可以通過創建

REPOSITORY      TAG     IMAGE ID   CREATED    SIZE 
hyperledger-peer    latest    438b65f18f21  8 seconds ago  1.418 GB 

在這一點上驗證同行應該成功啓動:

[email protected]:v0.0.9-b4acc4b:~$ docker run —rm -it -e CORE_VM_ENDPOINT=http://172.17.0.1:2375 -e CORE_PEER_ID=vp0 -e CORE_PEER_ADDRESSAUTODETECT=true hyperledger-peer peer node start 
21:55:51.969 [crypto] main -> INFO 001 Log level recognized 'info', set to INFO 
21:55:51.970 [peer] func1 -> INFO 002 Auto detected peer address: 172.17.0.2:30303 
21:55:51.971 [peer] func1 -> INFO 003 Auto detected peer address: 172.17.0.2:30303 
21:55:51.972 [peer] func1 -> INFO 004 Auto detected peer address: 172.17.0.2:30303 
21:55:51.974 [main] serve -> INFO 005 Security enabled status: false 
21:55:51.974 [main] serve -> INFO 006 Privacy enabled status: false 
… 
相關問題