我正在尝试使用docker建立一个由两个节点组成的私有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集群的适当文档。 这篇 文档缺少很多细节。
谢谢。