【发布时间】:2019-03-02 22:28:14
【问题描述】:
我正在尝试使用 docker 设置一个 2 节点私有 IPFS 集群。为此,我使用ipfs/ipfs-cluster:latest 图像。
我的 docker-compose 文件看起来像:
version: '3'
services:
peer-1:
image: ipfs/ipfs-cluster:latest
ports:
- 8080:8080
- 4001:4001
- 5001:5001
volumes:
- ./cluster/peer1/config:/data/ipfs-cluster
peer-2:
image: ipfs/ipfs-cluster:latest
ports:
- 8081:8080
- 4002:4001
- 5002:5001
volumes:
- ./cluster/peer2/config:/data/ipfs-cluster
启动容器时出现以下错误
ERROR ipfshttp: error posting to IPFS: Post http://127.0.0.1:5001/api/v0/repo/stat?size-only=true: dial tcp 127.0.0.1:5001: connect: connection refused ipfshttp.go:745
是否有任何关于如何在 docker 上设置 IPFS 集群的适当文档。 This 文档遗漏了很多细节。
谢谢。
【问题讨论】: