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`installed package installed on the Docker host. e.g. for Debian or Ubuntu:
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
sudo apt-get install apparmor-utils lxc
1. Create a file on the Docker host with the following contents:
@@ -19,4 +21,12 @@ If your Docker host has [AppArmor](https://wiki.ubuntu.com/AppArmor) activated,
1. Load this profile into the kernel with [`apparmor_parser`](http://manpages.ubuntu.com/manpages/xenial/man8/apparmor_parser.8.html):