An open API service indexing awesome lists of open source software.

https://github.com/redmic-project/storage-nfs-server

[MIRROR] Deployment of NFS server, to share contents (Docker Swarm volumes) between different hosts
https://github.com/redmic-project/storage-nfs-server

Last synced: 4 months ago
JSON representation

[MIRROR] Deployment of NFS server, to share contents (Docker Swarm volumes) between different hosts

Awesome Lists containing this project

README

        

# nfs-server

Deployment of NFS server, to share contents (Docker Swarm volumes) between different hosts

## AppArmor

If your Docker host has [AppArmor](https://wiki.ubuntu.com/AppArmor) activated, you'll need to perform additional steps to allow the container to start an NFS server.

1. Ensure you have the `apparmor-utils` and `lxc` packages installed on the Docker host. e.g. for Debian or Ubuntu:

sudo apt-get install apparmor-utils lxc

1. Create a file on the Docker host with the following contents:

#include
profile nfs-server flags=(attach_disconnected,mediate_deleted) {
#include
mount fstype=nfs*,
mount fstype=rpc_pipefs,
}

1. Load this profile into the kernel with [`apparmor_parser`](http://manpages.ubuntu.com/manpages/xenial/man8/apparmor_parser.8.html):

sudo apparmor_parser -r -W /path/to/file/from/previous/step

1. If profile does not survive reboot, place it at `/etc/apparmor.d/`.