Docker Community Forums

Share and learn in the Docker community.

Unable to write to mounted drive

this topic has been deleted the solution was to find the correct directorya

Uhm, what about your os, the docker version and last but not least the image that causes the problem?

Due to the level of provided details, the anwser is: problem with file permission.

Please provide the details asked above and the output of following commands:

  • on host: stat /mnt/storage
    in container: ps auxfn

Sorry i’m realizing now how broad my question was. My operating system is Ubuntu 18.04.4 LTS. With Docker version 19.03.6, build 369ce74a3c. With the docker image https://hub.docker.com/r/binhex/arch-qbittorrentvpn/dockerfile. My output for stat /mnt/storage is

  File: /mnt/storage/
  Size: 4096      	Blocks: 8          IO Block: 4096   directory
Device: 31h/49d	Inode: 8800387989509  Links: 1
Access: (0777/drwxrwxrwx)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2019-12-15 21:17:06.775984400 -0500
Modify: 2019-12-15 21:05:26.075639600 -0500
Change: 2019-12-15 21:05:26.075639600 -0500
 Birth: -

and this is my ps aux in the docker

USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.1  0.0   2312   580 ?        Ss   09:32   0:00 /usr/bin/tini -- /bin/b
root         6  3.8  0.0  30264 24060 ?        S    09:32   0:00 /usr/bin/python /usr/bi
root       156  0.6  0.0   7344  3728 ?        S    09:33   0:00 /bin/bash /root/start.s
nobody     157  0.2  0.0   7216  3660 ?        S    09:33   0:00 /bin/bash /home/nobody/
root       294  0.3  0.0  18020  5588 ?        Ss   09:33   0:00 /usr/bin/openvpn --daem
root       296  0.0  0.0   5296   576 ?        S    09:33   0:00 sleep 30s
root       305  0.0  0.0   7480  3960 pts/0    Ss   09:33   0:00 bash
root       320  0.0  0.0   4248  3240 ?        S    09:33   0:00 /bin/bash /root/prerung
root       365  0.0  0.0   4248  3100 ?        S    09:33   0:00 /bin/bash /usr/local/bi
root       368  0.0  0.0   2328   508 ?        S    09:33   0:00 sleep 10
nobody     369  0.0  0.0   5296   576 ?        S    09:33   0:00 sleep 1s
root       370  0.0  0.0   8768  3132 pts/0    R+   09:33   0:00 ps aux