gpt4 book ai didi

docker - 如何正确重启Hyperledger Fabric?

转载 作者:行者123 更新时间:2023-12-02 15:55:27 24 4
gpt4 key购买 nike

我还没有找到任何关于如何在重新启动计算机后完全重新启动 Hyperledger Fabric 和所有 Docker 容器的指示。

特别是,我有这个容器:

$ docker container ls -a

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
8fe26f6bf531 hyperledger/fabric-peer:1.2.1 "peer node start" 41 minutes ago Up 40 minutes 0.0.0.0:7051->7051/tcp, 0.0.0.0:7053->7053/tcp peer0.org1.example.com
0caca897250f hyperledger/fabric-orderer:1.2.1 "orderer" 41 minutes ago Up 40 minutes 0.0.0.0:7050->7050/tcp orderer.example.com
a3addacf7808 hyperledger/fabric-couchdb:0.4.10 "tini -- /docker-ent…" 41 minutes ago Up 41 minutes 4369/tcp, 9100/tcp, 0.0.0.0:5984->5984/tcp couchdb
1c699bc55cbf hyperledger/fabric-ca:1.2.1 "sh -c 'fabric-ca-se…" 41 minutes ago Up 41 minutes 0.0.0.0:7054->7054/tcp ca.org1.example.com
a3214a02a0e5 localhost/composer-rest-server "pm2-docker composer…" 17 hours ago Exited (0) 17 hours ago rest
30c1e5ace414 mongo "docker-entrypoint.s…" 17 hours ago Exited (0) 17 hours ago mongo
b7baef0aa3c7 dev-peer0.org1.example.com-tutorial-network-0.0.1-6695b9314667cc296171c0da511644e9011aa9a3ba0f6e759aca9e32e458803c "/bin/sh -c 'cd /usr…" 17 hours ago Exited (0) 17 hours ago dev-peer0.org1.example.com-tutorial-network-0.0.1

运行命令./startFabric.sh仅启动前四个容器。

如何重新启动最后三个容器以使系统像重新启动之前一样运行?

最佳答案

可能是 ./stopFabric 后跟 ./teardownFabric,然后再使用 ./startFabric?

关于docker - 如何正确重启Hyperledger Fabric?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56848449/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com