You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "MCollier24 (via GitHub)" <gi...@apache.org> on 2026/02/21 20:55:22 UTC
[I] Airflow on Podman Not Supporting Other Users [airflow]
MCollier24 opened a new issue, #62300:
URL: https://github.com/apache/airflow/issues/62300
### Apache Airflow version
3.1.7
### If "Other Airflow 3 version" selected, which one?
_No response_
### What happened?
I'm trying to run airflow in a rootless podman installation. I'm finding lot's of trouble with the permissions and have stripped back to what I believe the most basic test of the image.
I'm executing the command:
`podman run --user=$(id -u):0 docker.io/apache/airflow:3.1.7 airflow version`
This pulls the image just fine, but the /entrypoint script does not seem to be setting the python environment correctly for the specified user
```
....................
ERROR! Maximum number of retries (20) reached.
Last check result:
$ airflow db check
Traceback (most recent call last):
File "/home/airflow/.local/bin/airflow", line 3, in <module>
from airflow.__main__ import main
ModuleNotFoundError: No module named 'airflow'
```
I've ran this test on two machines currently, both running Ubuntu server, one of which being a fresh install with the only prior commands being to upgrade apt and install podman.
### What you think should happen instead?
This should start the airflow container and report the airflow version in addition to all other items handled in the /entrypoint script.
### How to reproduce
1. Install podman
2. Run basic airflow command with `podman run --user=$(id -u):0 docker.io/apache/airflow:3.1.7 airflow version`
3. Receive python module errors
### Operating System
Ubuntu 24.04.4 LTS
### Versions of Apache Airflow Providers
_No response_
### Deployment
Other Docker-based deployment
### Deployment details
Only tested with podman version 4.9.3
### Anything else?
_No response_
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [x] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
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: commits-unsubscribe@airflow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Airflow on Podman Not Supporting Other Users [airflow]
Posted by "boring-cyborg[bot] (via GitHub)" <gi...@apache.org>.
boring-cyborg[bot] commented on issue #62300:
URL: https://github.com/apache/airflow/issues/62300#issuecomment-3939471277
Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval.
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Airflow on Podman Not Supporting Other Users [airflow]
Posted by "MCollier24 (via GitHub)" <gi...@apache.org>.
MCollier24 commented on issue #62300:
URL: https://github.com/apache/airflow/issues/62300#issuecomment-3948588889
Seems that an easy enough workaround for users on podman is to use `podman run ... --passwd=false ...` this prevents podman from injecting a user into the container when specifying the user id which bypasses the user setup done for arbitrary user-id's done in the airflow containers entrypoint.
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Airflow on Podman Not Supporting Other Users [airflow]
Posted by "eternal-sorrow (via GitHub)" <gi...@apache.org>.
eternal-sorrow commented on issue #62300:
URL: https://github.com/apache/airflow/issues/62300#issuecomment-4365784086
How do I pass `--passwd=false` when using podman-compose?
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org