簡體   English   中英

在vagrant內外運行docker映像有什么區別

[英]What is the difference between running docker image in and outside of vagrant

誰能解釋在vagrant內部和vagrant外使用docker鏡像有什么區別?

以及如何將chaincode部署到在vagrant之外的docker容器中運行的網絡?

現在我在vagrant之外有一個由4個對等方組成的網絡,我正嘗試從github部署一個鏈碼:

{
  "jsonrpc": "2.0",
  "method": "deploy",
  "params": {
    "type": 1,
    "chaincodeID": {
      "path": "https://github.com/aybek/test_ibm_chaincode"
    },
    "ctorMsg": {
      "function": "init"
    },
    "metadata": [97, 115, 115, 105, 103, 110, 101, 114],
    "secureContext": "admin"
  },
  "id": 0
}

輸出:

部署Chaincode時出錯:獲取Chaincode包字節時出錯:獲取代碼時出錯獲取Chaincode花費的時間太長

建議在無業游民之外運行docker容器。 Fabric v1.0文檔中有一個很好的示例如何運行docker容器並安裝/實例化鏈代碼:

https://hyperledger-fabric.readthedocs.io/en/latest/build_network.html

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM