1. # docker 安装 ipfs
  2. export PWD=/home/bystack
  3. mkdir -p $PWD/docker/ipfs/staging; mkdir -p $PWD/docker/ipfs/data;
  4. tree -d -L 1 $PWD/docker/ipfs
  5. go get github.com/Kubuxu/go-ipfs-swarm-key-gen
  6. ipfs-swarm-key-gen > $PWD/docker/ipfs/data/swarm.key
  7. git clone --depth 1 -b v0.9.1 https://github.com/ipfs/go-ipfs.git
  8. cd go-ipfs
  9. docker build -t ipfs:v0.9.1 .
  10. docker run --name ipfs \
  11. -p 127.0.0.1:14001:4001 \
  12. -p 127.0.0.1:15001:5001 \
  13. -p 127.0.0.1:18080:8080 \
  14. -p 127.0.0.1:18081:8081 \
  15. -v $PWD/docker/ipfs/staging:/export \
  16. -v $PWD/docker/ipfs/data:/data/ipfs \
  17. -d ipfs:v0.9.1
  18. docker exec ipfs ipfs bootstrap rm --all
  19. docker exec ipfs ipfs swarm peers
  20. docker exec -it ipfs /bin/sh
  21. docker logs -f ipfs

ipfs/go-ipfs

ipfs/go-ipfs-api

https://docs.ipfs.io/
https://dist.ipfs.io/go-ipfs/v0.9.1
https://hub.docker.com/r/ipfs/go-ipfs

IPFS私链搭建

IPFS私链搭建及常用操作命令

IPFS技术进展:在Docker使用IPFS

利用 Docker 搭建 IPFS 私有网络

利用 Docker 搭建 IPFS 私有网络

使用docker部署ipfs节点

IPFS 笔记 - 基于 Docker 自动化组件私链的 Shell 脚本

IPFS 笔记 - 使用 Docker 搭建 IPFS 私链