PermissionError on Docker when using a non default UID #24845
-
Hello I'm using airflow 2.2.5 also to run some workload on Docker Swarm. The worker container now runs with user "default", with the desired UID and with docker as additional group, listening on "myqueue" queue.
If i run a dockerswarmoperator dag on the default worker it works. Groups are the same.
If I add queue='myqueue' to the dag definition, the task fails I checked connection and it seems fine to me.
The task fails with these messages:
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
I can even run the dag manually from command line and it succeed.
|
Beta Was this translation helpful? Give feedback.
-
Solved, i need to update docker-compose in order to use group_add. |
Beta Was this translation helpful? Give feedback.
-
Solved, i need to: sudo chmod 666 /var/run/docker.sock |
Beta Was this translation helpful? Give feedback.
Solved, i need to update docker-compose in order to use group_add.
I didn't find any other way to make the shell in which airflow is running aware of the supplementary docker group