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:
- 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
- I installed docker inside the container and checked if it was working (
docker version
) - Logged in with infinit user and pulled volumes and networks-
- I ran command from manual
infinit daemon run --docker-user root
- 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.)