# 下載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
```

![](https://529150212-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lh81JtaIQ84bwQqz_Wh%2F-M4SuP5Lk3mGzZrU6b8w%2F-M4Sxs2I0-IJTY3cIXw_%2Fimage.png?alt=media\&token=16b86c17-ddd7-4b45-a6dd-2be5d8a8f69f)

![](https://529150212-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lh81JtaIQ84bwQqz_Wh%2F-M4SuP5Lk3mGzZrU6b8w%2F-M4Sxyv8UzRpr1d3vB7P%2Fimage.png?alt=media\&token=0043898f-7c83-4156-8e86-0a57fa7ac57d)

{% 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
```

![](https://529150212-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lh81JtaIQ84bwQqz_Wh%2F-M4SahlG3pr8bz-piTc0%2F-M4SbCgef2mZzjG5Caux%2Fimage.png?alt=media\&token=628ad1f2-c8e7-434c-91ca-3942ab3b46f8)
