alecharp's blog

Get videos from Youtube with Docker - part 2

In my previous post here, I’ve shown how I get fetch videos from Youtube from my command line without installing anything else than Docker. But the command to type is way too complicated

So I made a shell script to easily use my docker container.

## Author: Adrien Lecharpentier <>

status=$(boot2docker status)
if [ "${status}" != "running" ]; then
  boot2docker start
docker run -ti -v "$(pwd)":/downloads alecharp/get-videos:latest $@

This way, I can easily download any youtube (or other) videos without having to remember every argument to give to the docker command. I only have to say:

sh $URL

and it downloads the video in the current folder.

You can find the script here :

Thanks for reading.