fluent / fluentd-docker-image

Docker image for Fluentd
https://hub.docker.com/r/fluent/fluentd/
Apache License 2.0
464 stars 351 forks source link

Openshift will allow only non-root user. This container fails #114

Open meduri99 opened 6 years ago

meduri99 commented 6 years ago

I am trying to use this image on my OpenShift Instance. But since there is a restriction to run the containers on pods as non-root user, this image is failing to run.

Is there an alternative?

repeatedly commented 6 years ago

Hmm... maybe, asking it on OpenShift community is better.

rmacian commented 6 years ago

I am on the same boat, the problem lays here:

https://github.com/fluent/fluentd-docker-image/blob/master/v0.14/alpine/entrypoint.sh

I think this tries to keep the UID to avoid permissions problems but Openshift has guides to allow this

See "Support Arbitrary User IDs" in https://docs.openshift.org/latest/creating_images/guidelines.html#openshift-origin-specific-guidelines

repeatedly commented 6 years ago

Fluetnd has FLUENTD_UID env to specify uid at runtime. Openshift can't use this mechanizm to adjust uid?

github-actions[bot] commented 2 months ago

This issue has been automatically marked as stale because it has been open 30 days with no activity. Remove stale label or comment or this issue will be closed in 7 days