News for hackers. Stuff that matters.
Re:Dockerfile Best Practices by LucidLynx on Sunday January 03, 2021 @05:28AM (#25620926)
It is definitely possible to run nginx as non-root in a container: https://www.rockyourcode.com/run-docker-nginx-as-non-root-us...

Also, all the sentences that begin with '>' were comments from https://github.com/caddyserver/caddy-docker/issues/104, and not from the user gbrindisi

Re:Dockerfile Best Practices by francislavoie on Sunday January 03, 2021 @11:51AM (#25622889)
It's also possible to run Caddy in Docker as non-root, but it requires jumping through some hoops when configuring Caddy, for example changing the HTTP and HTTPS ports in global configuration to something else, since those ports are necessary to use for ACME.

If the official Docker image did that, then most users would be very confused and we would get lots of support complaints. A cost-benefit analysis told us it was not worth the headache to run as non-root since the Caddy project values highly user experience.

Re:Dockerfile Best Practices by cpuguy83 on Sunday January 03, 2021 @01:53PM (#25624012)
I believe we setup containers in Docker 20.10 such that containers can bind to < 1024 by default without giving it cap_net_bind: https://github.com/moby/moby/pull/41030