Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 617 Bytes

README.md

File metadata and controls

25 lines (16 loc) · 617 Bytes

youtube-dl in a docker

Build youtube-dl image

Pull

docker pull ghcr.io/sashkab/docker-youtube-dl/docker-youtube-dl:latest

Create alias

Add alias into your .bash_profile or .zshrc files:

alias yt='docker run --rm -u $(id -u):$(id -g) -v $PWD:/downloads -t ghcr.io/sashkab/docker-youtube-dl/docker-youtube-dl:latest'

Automatically update via crontab

Add a schedule to update via crontab:

0 1 * * 0 docker pull ghcr.io/sashkab/docker-youtube-dl/docker-youtube-dl:latest