New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mounting FUSE should be possible with Docker Swarm Mode #31157
Comments
Just to clarify a little bit on what I'm trying to achieve: the goal is to have distributed storage implemented inside of containers that doesn't need privileged access to Docker Engine and doesn't need basically any manual configuration in simplest cases besides generic declarative I've seen Infinit acquisition, but it is not integrated deeply and as easy to use as |
It might be easier to use a volume plugin, eg see the example sshfs fused based volume plugin here https://github.com/vieux/docker-volume-sshfs as an example, writing a Adding device support is on the roadmap see the functionality parity issue for details #25303 |
It is not easier to use volume plugin, since Ceph needs to be configured upfront manually and is not a part of services declaration in contrast to simple Do you think this issue should be closed in favor of generic |
@nazar-pc I think you will find that writing a volume plugin is much easier. They do not need to be written in Go, they just communicate over a socket. This is exactly the use case they are designed for. You just need to do If you use the method you suggest you are granting |
Description
I'd like to mount filesystem using FUSE inside container when it starts, but this doesn't seem to be possible in Docker Swarm Mode.
In particular, I want to mount
ceph-fuse
.Ideally, following should work (it actually works with
version: '2'
after scaling Ceph's nodes to 3+ instances):However, both
devices
andcap_add
are not allowed with v3 ofdocker-compose.yml
file format, which in turn seems to be limited by Docker Engine itself.Steps to reproduce the issue:
ceph-fuse
in container running with Docker Swarm ModeDescribe the results you received:
Mounting fails
Describe the results you expected:
Mounting should be possible somehow
Output of
docker version
:Output of
docker info
:The text was updated successfully, but these errors were encountered: