Use podman without rootless to bind 80 and 443

I prefer to not run web applications as root. authbind allows you to run the application as a user other than root, but bind to ports 80 and 443.

I can explain how I can achieve with authbind.

Install authbind

sudo apt-get install authbind
sudo touch /etc/authbind/byport/80
sudo touch /etc/authbind/byport/443
sudo chown $USER /etc/authbind/byport/{80,443}
sudo chmod 500 /etc/authbind/byport/{80,443}

Start the container without rootless

authbind --deep podman-compose -f docker-compose.yml up -d

豫ICP备18015035号-1