Help us understand the problem. What is going on with this article?

DockerでvolumeのバックエンドにIPFSを使う

More than 1 year has passed since last update.

概要

DockerのVolume pluginに、IPFSをバックエンドで利用できるものがあったのでセットアップしてみた

※とりあえず起動までをメモ、Volume作成したら追記する

※なお、下記のままセットアップするとグローバルのIPFSクラスタに入るので、Volumeの中身は公開されます。

環境

  • ubuntu 16.04
  • docker 17.03.1-ce
  • go 1.6.2

ipfsのインストール

wget https://dist.ipfs.io/go-ipfs/v0.4.9-rc2/go-ipfs_v0.4.9-rc2_linux-amd64.tar.gz
sudo mv go-ipfs/ipfs /usr/local/bin/ipfs

ipfs のセットアップ

sudo su -
ipfs init
mkdir /ipfs /ipns

ipfs docker volume pluginのインストール

go get github.com/vdemeester/docker-volume-ipfs
cd gopath/src/github.com/vdemeester/docker-volume-ipfs/
sudo -E make install

ipfs volume plugin の起動

sudo su -
docker-volume-ipfs &
Why do not you register as a user and use Qiita more conveniently?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away