You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/04/03 13:54:06 UTC

[GitHub] [airflow] mik-laj commented on a change in pull request #15162: Better compatibility/diagnostics for arbitrary UID in docker image

mik-laj commented on a change in pull request #15162:
URL: https://github.com/apache/airflow/pull/15162#discussion_r606667513



##########
File path: docs/docker-stack/entrypoint.rst
##########
@@ -87,13 +87,49 @@ The image entrypoint works as follows:
   command to execute and result of this evaluation is used as ``AIRFLOW__CELERY__BROKER_URL``. The
   ``_CMD`` variable takes precedence over the ``AIRFLOW__CELERY__BROKER_URL`` variable.
 
-Creating system user
---------------------
+.. _arbitrary-docker-user:
+
+Allowing arbitrary user to run the container
+--------------------------------------------
+
+Airflow image is Open-Shift compatible, which means that you can start it with random user ID and the
+group id ``0`` (``root``). If you want to run the image with user different than Airflow, you MUST set
+GID of the user to ``0``. In case you try to use different group, the entrypoint exits with error.
+
+In order to accommodate a number of external libraries and projects, Airflow will automatically create
+such an arbitrary user in (`/etc/passwd`) and make it's home directory point to ``/home/airflow``.

Review comment:
       ```suggestion
   such an arbitrary user in (``/etc/passwd``) and make it's home directory point to ``/home/airflow``.
   ```




-- 
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org