mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-12-21 21:33:02 +01:00
Run the image as the current user
This will make the downloaded files be saved as the current user instead of root :-)
This commit is contained in:
@@ -8,7 +8,7 @@ youtube-dl
|
|||||||
|
|
||||||
```
|
```
|
||||||
# create a alias
|
# create a alias
|
||||||
$ alias yt='docker run --rm -v `pwd`:/data vimagick/youtube-dl'
|
$ alias yt='docker run --rm -u $(id -u):$(id -g) -v `pwd`:/data vimagick/youtube-dl'
|
||||||
|
|
||||||
# list all formats
|
# list all formats
|
||||||
$ yt -F nVjsGKrE6E8
|
$ yt -F nVjsGKrE6E8
|
||||||
|
|||||||
Reference in New Issue
Block a user