infinit / infinit

The Infinit policy-based software-defined storage platform.

Home Page:http://infinit.sh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

volume plugin inside docker container

frimdo opened this issue · comments

Hi - I have a question about running a infinit volume plugin inside docker container. Guys from docker says it should be doable with no problems.

I followed manual, except I ran the daemon in container. So my steps were:

  1. I created a container, which is privileged and connected to docker
docker run -it   --name infinit-volume-plugin  -v /var/run/docker.sock:/var/run/docker.sock   --network infinit-network   --privileged   mefyl/infinit bash
  1. I installed docker inside the container and checked if it was working (docker version)
  2. Logged in with infinit user and pulled volumes and networks-
  3. I ran command from manual infinit daemon run --docker-user root
  4. I did not find infinit volume in docker volume ls

Pretty much the same steps worked on host itself... Any ideas?

Also I found out the new "docker plugin" concept. Is infinit going to create this kind of volume plugin?

Edit: Pretty much the same steps kind of worked. It created the docker volume, but no container can mount it.

[               infinit.filesystem               ] [fuse loop] unexpected exception fetching 0x147e043d00("/"): too few peers are available to reach consensus: 1 of 3

I guess the plugin cannot access the nodes, because they are communicating over an overlay network... (nodes are being ran inside docker containers.)

Hi @frimdo.

About those errors, maybe @mefyl or @mnottale can help. They are more familiar with infinit through docker's overlay networks.

About the new docker plugin concept, we will but I can't give any time frame for now.