-
-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues when trying to run the container with Podman #1082
Comments
Hi. It is quite weird because if you use no DATABASE_URL it should use SQLite. You then miss the mapping for the database volume. If you add that it should work. So docker run -d --name podfetch --user 0:0 -p 80:8000 -e POLLING_INTERVAL=60 -e SERVER_URL=http://localhost:80 -e DATABASE_URL=sqlite:///app/db/podcast.db samuel19982/podfetch:latest works without a volume mapping but with user 1000 not. |
The log showing postgres instead of sqlite was my mistake, I tried out both options to see whether it'd make a difference, and pasted the wrong log. I just tried it again, using:
I used port 3000 because port 80 is in the range of restricted ports. I had removes this restriction earlier for testing, but would prefer running podfetch on a higher port anyway.
User 1000:1000 is "host". Output for I probably missed something at some point in the process, but I'm not entirely sure what it might be. |
I just tried your scenario. Freshly setup podman with https://community-scripts.github.io/ProxmoxVE/scripts?id=podman in Proxmox VE. groupadd -g 1000 podfetcher
useradd -u 1000 -g 1000 podfetch
chown -R podfetch /var/Podfetch/db
podman run -d --name podfetch --user 1000:1000 -p 3000:8000 -v /var/Podfetch/db:/app/db -v /var/Podfetch/podcasts:/app/podcasts -e POLLING_INTERVAL=60 -e SERVER_URL=http://localhost:3000 samuel19982/podfetch:latest Let me know if this fixed your problems. |
Describe the bug
I am using podman instead of docker, and while they're mostly interoperable, there seems to be an issue with my setup that prevents me from running podfetch as a rootless podman container.
For testing purposes, I have turned the docker-compose file from the Documentation into the following podman command:
Running this results in a container that immediately exits, with the following log:
When removing the database URL and the downloads, instead running the container with
it runs, and the webinterface is reachable via
serverIP:80
, and works fine, but naturally can't permanently save any imported podcasts. The log prints several❌ - database is locked
errors, but this doesn't appear fatal./var/Podfetch/
is owned by 1000:1000, with permissions set to 775.One thing that podman does differently which might be relevant is using pasta, replicating the hosts IP in the container. I know that the image provided is explicitly a docker image with no implied support for podman, and that this might be a podman issue, so please do close it if it's inappropriate.
Reproduction
podman run -d --name podfetch --user 1000:1000 -p 80:8000 -v /var/Podfetch/db:/app/db -v /var/Podfetch/podcasts:/app/podcasts -e POLLING_INTERVAL=60 -e SERVER_URL=http://localhost:80 -e DATABASE_URL=sqlite:///app/db/podcast.db samuel19982/podfetch:latest
System Info
Used Package Manager
n/a
Validations
The text was updated successfully, but these errors were encountered: