I have a docker-compose.yaml
file where I override the user that is used to run the container process using the user directive:
version: "3.3"
services:
front:
image: "ghcr.io/hexil-org/hexer-front:latest"
restart: "unless-stopped"
user: "1002:1002"
In the container, a webserver needs to be opened on port 80
, however, this fails with the following error:
httpd: bind: Permission denied
From what I understand, this fails because 80
is a privileged port that cannot be opened by a user other than root
. Is there any way to allow the user in the Docker container to open port 80
?