caddyserver / caddy-docker

Source for the official Caddy v2 Docker Image
https://hub.docker.com/_/caddy
Apache License 2.0
405 stars 74 forks source link

Use caddy non root user in caddy container #293

Closed K2ouMais closed 1 year ago

K2ouMais commented 1 year ago

Hello everyone,

this is not an issue, but a question.

Is there a way to use a non root user in the container? Or do I have to build an image myself?

Because it beeing root, I cant use it in our Kubernetes cluster, because of the policies.

Nginx has unprivileged containers on Dockerhub, but I would love to use caddy because of simplicity.

Thanks in advance

hairyhenderson commented 1 year ago

See https://github.com/caddyserver/caddy-docker/issues/104 and #274

gyzerok commented 9 months ago

Hello @hairyhenderson! Maybe I am missing something but I don't see any instructions on how to run as non-root in the image docs nor in the issue/PR you've mentioned. Would appreciate your help here.

hairyhenderson commented 9 months ago

@gyzerok this was closed because it was a duplicate - see the discussion in #104