[SOLVED] How to Configure Caddy in Docker Container (Getting Permission Denied)

Hi @Whitestrake, I had to change the command since I was getting the following message when building the image from docker:

ERROR: for webserver Cannot start service webserver: linux spec capabilities: Unknown capability to add: "CAP_CAP_NET_BIND_SERVICE"

I assumed that docker already added the “CAP_” prefix. If I leave it as “NET_BIND_SERVICE”, everything seems to be better; although still not working the HTTPS; still getting:

Could not start HTTP server for challenge -> listen tcp :80: bind: permission denied

I’m a little bit desperate with this matter. I would appreciate if you have any other ideas