fluentd-docker-image icon indicating copy to clipboard operation
fluentd-docker-image copied to clipboard

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

Open meduri99 opened this issue 7 years ago • 4 comments

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?

meduri99 avatar Mar 01 '18 17:03 meduri99

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

repeatedly avatar Mar 01 '18 17:03 repeatedly

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

rmacian avatar Mar 06 '18 13:03 rmacian

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

repeatedly avatar Mar 12 '18 19:03 repeatedly