• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

psprings/docker-ipfs: Dockerized IPFS experimentation focused on private network ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

psprings/docker-ipfs

开源软件地址:

https://github.com/psprings/docker-ipfs

开源编程语言:

Shell 100.0%

开源软件介绍:

docker-ipfs

This is a collection of files and configuration for playing with IPFS in Docker. Most of the experimentation will be focused on private networks and clustering.

Starting points

Resources

Good explanation for the role of private networks vs clustering

They are separate features/functionality.

* With private networks each node specifies which other nodes it will connect to. Nodes in that network don't respond to communications from nodes outside that network.
* With ipfs-cluster you use a leader-based consensus algorithm to coordinate storage of a pinset -- distributing the set of data across the participating nodes based on whichever pattern you prefer

You could use these features together -- using ipfs-cluster to spread a pinset across a private network of nodes -- but they are completely separate features. They do not rely on each other. Support for private networks is functionality implemented within the core (go-ipfs) code base. ipfs-cluster is its own separate code base.

-- flyingzumwalt

https://discuss.ipfs.io/t/how-to-create-a-private-network-of-ipfs/339/7

Clustering

Private networks

Private network setup

Generate a swarm key

If you don't have the ipfs-swarm-key-gen binary locally, you can use Docker to to fetch the dependency and generate a swarm key by running the following:

$ docker run --rm golang:1.9 sh -c 'go get github.com/Kubuxu/go-ipfs-swarm-key-gen/ipfs-swarm-key-gen && ipfs-swarm-key-gen'
/key/swarm/psk/1.0.0/
/base16/
f744ccf21ef090407977a33e01deb0a0c6a3397ae0366ff6f3c749e200f2510d

Simple way to run a private network

docker run --rm -e LIBP2P_FORCE_PNET=1 -e SWARM_KEY="/key/swarm/psk/1.0.0/\n/base16/\ne0e7b1394fb6e928eecf2f8db77eaa99d3657684dc939519f285cb902bd93e22" -v ./private-network/init.sh:/usr/local/bin/start_ipfs ipfs/go-ipfs:latest



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
ipfs/go-ipfs-example-plugin发布时间:2022-06-22
下一篇:
jmjatlanta/c-multiaddr: multiaddr for IPFS in C.发布时间:2022-06-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap