youtube-dl is a command-line program to download videos from YouTube.com and other video sites.
yt-dlp is a fork of the above project.
- Github page : https://github.com/gissehel/docker-youtube-dlp
- Docker image page : https://github.com/gissehel/docker-youtube-dlp/pkgs/container/youtube-dlp
Based on https://github.com/gissehel/docker-youtube-dl.
Which is based on https://github.com/wernight/docker-youtube-dl. (https://hub.docker.com/r/wernight/youtube-dl/).
$ docker run --rm --user $(id -u):$(id -g) -v $(pwd):/downloads ghcr.io/gissehel/youtube-dlp <video_url>
--user $(id -u):$(id -g)
is to run as your current user, and notroot
.-v $(pwd):/downloads
is to store downloaded files in the current working directory.<video_url>
is the ID of a YouTube video or other arguments to pass toyoutube-dl
.
Note: The entrypoint is set to yt-dlp
, so do not put yt-dlp
again as argument.
ydlp() {
docker run --rm --user $(id -u):$(id -g) -v $(pwd):/downloads ghcr.io/gissehel/youtube-dlp "${@}"
}
- Small: Built based on official Alpine Linux.
- Simple: One command and you should be ready to go. All documented here.
- Secure: Runs as any user.