Download with youtube-dl using command line arguments or configuration files
Image size | RAM usage | CPU usage |
---|---|---|
97.7MB | Depends | Depends |
- Works with command line arguments to youtube-dl
- Compatible with ARM (build it yourself)
- Small Docker image based on
- The container updates youtube-dl at launch if
-e AUTOUPDATE=yes
- A log file of youtube-dl execution is saved at
downloads/log.txt
if-e LOG=yes
- Docker healthcheck downloading
https://duckduckgo.com
withwget
every 10 minutes - The Docker Hub image is updated automatically every 3 days, so simply update your image with
docker pull qmcgaw\youtube-dl-alpine
- You can receive a notification on your Android device through Gotify when the youtube-dl has finished
-
CLICK IF YOU HAVE AN ARM DEVICE
-
If you have a ARM 32 bit v6 architecture
docker build -t qmcgaw/youtube-dl-alpine \ --build-arg BASE_IMAGE=arm32v6/alpine \ https://github.com/qdm12/youtube-dl-docker.git
-
If you have a ARM 32 bit v7 architecture
docker build -t qmcgaw/youtube-dl-alpine \ --build-arg BASE_IMAGE=arm32v7/alpine \ https://github.com/qdm12/youtube-dl-docker.git
-
If you have a ARM 64 bit v8 architecture
docker build -t qmcgaw/youtube-dl-alpine \ --build-arg BASE_IMAGE=arm64v8/alpine \ https://github.com/qdm12/youtube-dl-docker.git
-
-
Run the container with
docker run -d -v $(pwd)/yourdir:/downloads qmcgaw/youtube-dl-alpine \ https://www.youtube.com/watch?v=HagVnWAeGcM \ -o "/downloads/%(title)s.%(ext)s"
or use docker-compose.yml with
docker-compose up -d
-
See the youtube-dl command line options
-
If you encounter permission issues, either
chown 1000 yourdir && chmod 700 yourdir
or run the container with--user=1001
where1001
is the user ID owning yourdir
Environment variable | Default | Description |
---|---|---|
LOG |
yes |
Writes youtube-dl output to /downloads/log.txt or not |
AUTOUPDATE |
no |
Updates youtube-dl to the latest version at launch |
GOTIFYURL |
Gotify server URL address (i.e. http://192.168.1.5:8000 or https://a.com/gotify ) |
|
GOTIFYTOKEN |
Gotify server Token |
You can either:
-
Change the ownership and permissions of
./downloads
on your host with:chown 1000 -R ./downloads chmod 700 ./downloads chmod -R 600 ./downloads/*
-
Launch the container with a different user using
--user=$UID:$GID
- Healthcheck to check ydl logs
- Colors in terminal