> For the complete documentation index, see [llms.txt](https://kawsing.gitbook.io/opensystem/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kawsing.gitbook.io/opensystem/docker-cong-an-zhuang-dao-ying-yong-ru-men-pian/xia-zai-youtube.md).

# 下載Youtube

{% embed url="<https://github.com/wernight/docker-youtube-dl>" %}

```
git clone https://github.com/wernight/docker-youtube-dl.git
cd docker-youtube-dl/
docker build -t kawsing/youtube-dl .
docker run --rm --user 999:999 -v $PWD:/downloads kawsing/youtube-dl https://www.youtube.com/watch?v=mQmqqVfuzZY
```

{% embed url="<https://github.com/hyeonsangjeon/youtube-dl-nas>" %}

```
docker run -d --name youtube-dl --net=host -e APP_PORT=9999 -e MY_ID=kawsing -e MY_PW=1234  -v ~/youtube-dl:/downfolder modenaf360/youtube-dl-nas
```

![](/files/-M4Sxs2I0-IJTY3cIXw_)

![](/files/-M4Sxyv8UzRpr1d3vB7P)

{% embed url="<https://hub.docker.com/r/kmb32123/youtube-dl-server/>" %}

```
docker run -d --net="host" --name youtube-dl -v /home/ubuntu-mate/youtube-dl:/youtube-dl kmb32123/youtube-dl-server
```

![](/files/-M4SbCgef2mZzjG5Caux)
