Allow non-root user to bind port 80 (or other protected ports)

1 post / 0 new
#1 Thu, 2017-07-20 17:37
mwcz
  • mwcz's picture
  • Offline
  • Last seen: 4 months 1 week ago
  • Joined: 2017-07-19

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!