potiuk edited a comment on issue #17679: URL: https://github.com/apache/airflow/issues/17679#issuecomment-900994751
Before I reopen it, I need to know what error do you have when you configure user as root and what kind of modifications you've made. I think you could have jumped to conclusion that it does not work. If you enter the container via "/bin/bash" you will indeed get this error. But you should only enter the bash image via Airflow's image /entrypoint not via `/bin/bash`. This is the only way that can make it openshift-compatible and allow to run airflow as arbitrary user (including root). You can see more what the entrypoint is doing in https://airflow.apache.org/docs/docker-stack/entrypoint.html `docker run -it <airflow_image> bash` as parameter will allow you to enter bash and utilising the entrypoint in the way that root user works (and all containers in the Helm Chart should use it). For example `docker run -it apache/airflow:2.1.2-python3.6 bash -c "airflow version"` should work regardless which user you are running it with (and all the containers including extra containers you define) should use this approach rather than directly trying to execute `/bin/bash` within the container (which again - I am guessing) did not work for you. But I need to understand what you've done because It's a lot of guesses for now. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
