注:此版本仅适用于ipfs/go-ipfs:v0.4.18 版本
一、安装IPFS
1.1 下载IPFS镜像
[root@localhost mnt]# docker pull ipfs/go-ipfs:v0.4.18
Using default tag: latest
latest: Pulling from ipfs/go-ipfs:v0.4.18
0de338cf4258: Pull complete
11c62d923848: Pull complete
365846b6db74: Pull complete
068806c0c7c7: Pull complete
c974b7720ca1: Pull complete
586d5e183876: Pull complete
2851d4256382: Pull complete
9b9ad1445fab: Pull complete
Digest: sha256:4901bf2adb79a10fa420454a67dfd2417418fac517fead723b085cd4a80e6dfc
Status: Downloaded newer image for ipfs/go-ipfs:v0.4.18
[root@localhost mnt]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
ipfs/go-ipfs v0.4.18 c8b38c3e0676 4 months ago 43.2MB
1.2 生成IPFS容器
[root@localhost opt]# docker run -d --name ipfs_host