Using the latest Docker engine, I want to create a container that mounts a volume over the network. But when I try to execute the mount
command, I got the error Unable to apply new capability set.
. Found out, that Docker restricts permission, like on mounting here. Different sources say, that its necessary to add SYS_ADMIN
permission.
I did this, but still not working with the following command:
docker run --cap-add=SYS_ADMIN --cap-add=DAC_READ_SEARCH --privileged --memory=2g -d --name $containerName $imageName