Skip to content

Allow NFS Export in Container Filesystem with overlay2 #43299

@rdlarkins

Description

@rdlarkins

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions