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
- Host: GitHub
- URL: https://github.com/redmic-project/storage-nfs-server
- Owner: redmic-project
- License: mit
- Created: 2021-01-05T09:28:15.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-06-13T09:19:40.000Z (over 2 years ago)
- Last Synced: 2024-08-01T13:38:37.122Z (7 months ago)
- Language: Shell
- Homepage: https://gitlab.com/redmic-project/storage/nfs-server
- Size: 18.6 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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/`.