Testing the AdguardHome docker image with 0 capabilities
Version: latest tag on docker hub Install source: Docker hub Device: Synology DS920+ CPU:AMD64 OS:Synology OS(Linux)
I was curious if I could possibly run the Adguard Home Docker version without giving it's container any capabilities.
I explicitly dropped all capabilities and got error
standard_init_linux.go:230: exec user process caused: operation not permitted
Adding only NET_BIND_SERVICE capability solved the issue
After that I decided to test further to see if setting all of the ports outside of 0-1024 range would allow me to run the container without NET_BIND_SERVICE capability.
Settings dns port to 3053 and browser ports to 3080 and 3443 resulted in same error.
Now I am confused since I thought NET_BIND_SERVICE is only needed if container required the ports below 1024.
Can someone explain why we need NET_BIND_SERVICE even though we are not dealing with ports below 1024?