youtube-dl image
docker build -t yonh/youtube-dl .
# you can also use docker pull
docker pull yonh/youtube-dl
set your fish alias dl vi ~/.config/fish/config.fish
function dl
docker run -it --rm -v $PWD:/opt yonh/youtube-dl youtube-dl $argv
end
set your bash alias dl
alias dl="docker run -it --rm -v $PWD:/opt yonh/youtube-dl youtube-dl "
and then you can command dl, e.g.
dl -f '(bestvideo+bestaudio/best)[protocol^=http]' 'https://www.youtube.com/watch?v=n6XfnXOkffg'
Content type
Image
Digest
Size
33.1 MB
Last updated
over 5 years ago
docker pull yonh/youtube-dl