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
Allow NFS Export in Container Filesystem with overlay2 #43299
Comments
Code where index option is set to off: moby/daemon/graphdriver/overlay2/overlay.go Line 574 in d809ad9
|
@rdlarkins |
Hi,
I then want to NFS export the resulting /mnt/storage/test/userX |
@neersighted @dmcgowan could you have a peek? |
Has anyone 'peeked' at this yet? @neersighted @dmcgowan ... 🙏 |
Has anyone had a look at this yet? I'm going to need a solution soon as I'm a bit stuck without this...🤔😳🤞 |
Description
NFS Export is disabled in the container filesystem when the storage driver is overlay2. The option is set by docker when mounting the filesystem as at least in the past, there were issues with enabling the 'index' option, this was changed in this PR.
In a bit of testing I've done, it seems like at least the immediate issues previously triggered by enabling 'index' no longer occur with recent docker/ubuntu (Docker version 20.10.12, build e91ed57 running on Ubuntu 20.04.4 LTS with kernel 5.13.0-30-generic).
Using aufs as the storage driver does allow for this behavior, but as aufs support is deprecated in docker it would be better to support this with the main storage driver. A suggestion in the comments of the PR linked would be to add an option to enable both 'index' and 'nfs_export' from docker only in the case where you want export enabled for a container.
The text was updated successfully, but these errors were encountered: