Skip to content

What is the correct permission for directories that will be used in airflow docker? #13855

Answered by potiuk
bobfang1992 asked this question in General
Discussion options

You must be logged in to vote

I think this is not a question of what are the permissions of the volumes, but about the ownership.

The question is what user/groups should be used to run airflow. By default, Airflow user 50000:50000 to run using the prod image, however this user might not have access to the volumes, which will have HOST_USER/HOST_GROUP ownership/permission by default.

Unfortunately in Linux, the mounted volumes in docker container use the native Linux filesystem user/group permissions, and this cannot be easily changed without changing the configuration of docker engine (userns-remap) and is not suitable for "developer" case as it requires engine-wide configuration changes and cannot be done per-container.

Replies: 1 comment 11 replies

Comment options

You must be logged in to vote
11 replies
@potiuk
Comment options

potiuk Feb 27, 2021
Collaborator

@mik-laj
Comment options

mik-laj Feb 27, 2021
Collaborator

@swotai
Comment options

@potiuk
Comment options

potiuk Feb 28, 2021
Collaborator

@mik-laj
Comment options

mik-laj Feb 28, 2021
Collaborator

Answer selected by potiuk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants