Allow non-root user to bind port 80 (or other protected ports)
- 4 months 1 week ago
Does Alpine have a method for allowing non-root users to bind to port 80, or other protected ports? Giving a specific binary access to a port would work as well.
The context is that I'm building a Dockerfile whose containers will ultimately be deployed on OpenShift. OpenShift doesn't allow containers to run as root. Typically in OpenShift, a service would simply bind to port 8000+ instead, and let OpenShift's Routing mechanism handle the proxying. However, I intend to use the container in question for local development as well and would like it to run on port 80, since it will ultimately be accessed via port 80 in production.
Thanks for the help!