docker-youtube-dl icon indicating copy to clipboard operation
docker-youtube-dl copied to clipboard

Podman support?

Open BeayemX opened this issue 1 year ago • 1 comments

Should this image work with Podman?

I tried the following commands:

podman run --rm -i -e PGID=$(id -g) -e PUID=$(id -u) -v "$(pwd)":/workdir:rw mikenye/youtube-dl <url>
podman run --rm -i -v "$(pwd)":/workdir mikenye/youtube-dl <url>

but they always result in this error:

[download] Unable to open file: [Errno 13] Permission denied:

BeayemX avatar Mar 28 '23 17:03 BeayemX

I fround a quick workaround:

  1. Run an interactive session podman run --rm -i -e PGID=$(id -g) -e PUID=$(id -u) -v "$(pwd)":/workdir:rw,z -t --entrypoint=bash docker.io/mikenye/youtube-dl
  2. Run yt-dlp <url> in there, it works just fine.
  3. Exit with Ctrl+d

Note that I added a ,z to the volume mount because I run with selinux, this is also necessary with docker on selinux systems and should have no effect when running without selinux.

I wonder why this happens or what the default entry point is and what went wrong there. I don't have time to investigate further right now but feel free to ping me if you think this is important.

Tested on Fedora 39 which ships with selinux by default. Should work on any podman installation though.

dreua avatar Sep 21 '24 11:09 dreua