dockerfiles icon indicating copy to clipboard operation
dockerfiles copied to clipboard

youtube-dl: Modify docker-run command

Open marvinwankersteen opened this issue 7 years ago • 1 comments

Hi,

if I use ur docker-run command then I get a warning that the cache-folder is not writeable:

WARNING: Writing cache to '/.cache/youtube-dl/youtube-sigfuncs/js_vfl4Xq3l4_43.40.json' failed: Traceback (most recent call last):

I use this alias: alias youtube-dl='docker run --rm -u $(id -u):$(id -g) -v $PWD:/data vimagick/youtube-dl --cache-dir /tmp'

marvinwankersteen avatar May 19 '17 21:05 marvinwankersteen

Same here.

I'm following the tutorial at hub.docker.com. So:

$ alias yt='docker run --rm -u $(id -u):$(id -g) -v $PWD:/data vimagick/youtube-dl'
$ yt -F nVjsGKrE6E8
...
[youtube] nVjsGKrE6E8: Downloading js player vfl9zpg5e
WARNING: Writing cache to '/.cache/youtube-dl/youtube-sigfuncs/js_vfl9zpg5e_40.41.json' failed: Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/youtube_dl/cache.py", line 49, in store
    os.makedirs(os.path.dirname(fn))
  File "/usr/lib/python3.6/os.py", line 210, in makedirs
    makedirs(head, mode, exist_ok)
  File "/usr/lib/python3.6/os.py", line 210, in makedirs
    makedirs(head, mode, exist_ok)
  File "/usr/lib/python3.6/os.py", line 220, in makedirs
    mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/.cache'
...

kenorb avatar Jul 16 '18 12:07 kenorb