You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
is it possible to run this image as a non-root user inside the container? I tried to run it with www-data on Docker for Mac but got errors (apache was complaining) in the logs
The text was updated successfully, but these errors were encountered:
By default it binds to port 80, so trying to run it with --user www-data is going to run into moby/moby#8460 unless that port is changed (or one of the other workarounds described there is used, which if your kernel is new enough could be simply --sysctl net.ipv4.ip_unprivileged_port_start=0).
Yes, changing the port is one easy way to accomplish this. Using --sysctl net.ipv4.ip_unprivileged_port_start=0 is another.
See also #249 for a bit of functionality the image gained since this was filed which can also be used to trivially switch which user it ends up running as.
Hi there,
is it possible to run this image as a non-root user inside the container? I tried to
run
it withwww-data
on Docker for Mac but got errors (apache was complaining) in the logsThe text was updated successfully, but these errors were encountered: