Docker volume permissions issues after moving Docker appdata folder


Recommended Posts

Hey all,

 

I've moved my docker's appdata folder from /mnt/user/docker to /zfs/docker (using the ZFS plugin to create a zpool outside my array). I restored my CA Backup of my docker appdata folder, and it seem to have kept all my permissions in place:

 

root@NAS01:~# ls -ln /zfs/docker
total 4267660
drwxrwxrwx 8    0    0          19 Jul 27 16:14 Community_Applications_USB_Backup/
drwxrwxrwx 3    0    0           3 Jul 27 16:14 appdata/
drwxrwxrwx 3    0    0           7 Sep 12 00:11 1/
drwxr-xr-x 3    0    0           4 Aug  9 13:59 2/
drwxrwxrwx 3    0    0           3 Aug  8 14:51 3/
drwxrwxrwx 3    0    0           4 Jul 27 16:14 4/
-rw-rw-rw- 1   99  100 53687091200 Sep 12 11:23 docker.img
drwxr-xr-x 4  911  911           4 Jul 27 16:14 5/
drwxrwxrwx 6  911  911           6 Jul 27 16:14 6/
drwxrwxrwx 7 1000 1000          18 Sep 11 10:10 7/
drwxr-xr-x 6    0    0          15 Jul 27 16:14 8/
drwxr-xr-x 2 1000  100           3 Jul 27 16:14 9/
drwxrwxrwx 3 1000  100           6 Sep 12 03:07 10/
drwx------ 6 1000  100          10 Jul 27 16:38 11/
drwxrwxrwx 4    0    0           4 Jul 27 16:38 12/
drwxrwxrwx 7 1000  100          15 Sep 12 02:19 13/
drwxr-xr-x 2  911  911           4 Jul 27 16:38 14/
drwxrwxr-x 7 1000  100          15 Sep 12 02:36 15/
drwxr-xr-x 2 1000  100           2 Jul 27 16:39 16/
drwxrwxrwx 8 1000  100          13 Sep 12 03:07 17/
drwx------ 4    0    0           6 Jul 27 16:39 18/
drwxr-xr-x 5 1000  100          10 Jul 27 16:39 19/
drwxrwxrwx 5 1000  100           5 Jul 27 16:39 20/
drwx------ 7  911  911           7 Jul 27 16:40 21/

root@NAS01:~# ls -ln /mnt/user/docker
total 8357876
drwxrwxrwx 1    0    0         328 Jul 27 16:14 Community_Applications_USB_Backup/
drwxrwxrwx 1    0    0          20 Jul 27 16:14 appdata/
drwxrwxrwx 1    0    0         147 Sep 12 11:11 1/
drwxr-xr-x 1    0    0          47 Aug  9 13:59 2/
drwxrwxrwx 1    0    0          38 Aug  8 14:51 3/
drwxrwxrwx 1    0    0          37 Jul 27 16:14 4/
-rw-rw-rw- 1   99  100 53687091200 Sep 12 10:50 docker.img
drwxr-xr-x 1  911  911          34 Jul 27 16:14 5/
drwxrwxrwx 1  911  911          57 Jul 27 16:14 6/
drwxrwxrwx 1 1000 1000        4096 Sep 11 10:10 7/
drwxr-xr-x 1    0    0         212 Jul 27 16:14 8/
drwxr-xr-x 1 1000  100          25 Jul 27 16:14 9/
drwxrwxrwx 1 1000  100          53 Sep 12 11:23 10/
drwx------ 1 1000  100         191 Jul 27 16:38 11/
drwxrwxrwx 1    0    0          40 Jul 27 16:38 12/
drwxrwxrwx 1 1000  100         238 Sep 12 11:11 13/
drwxr-xr-x 1  911  911          44 Jul 27 16:38 14/
drwxrwxr-x 1 1000  100         232 Sep 12 11:12 15/
drwxr-xr-x 1 1000  100           6 Jul 27 16:39 16/
drwxrwxrwx 1 1000  100         208 Sep 12 11:11 17/
drwx------ 1    0    0          66 Jul 27 16:39 18/
drwxr-xr-x 1 1000  100         184 Jul 27 16:39 19/
drwxrwxrwx 1 1000  100          41 Jul 27 16:39 20/
drwx------ 1  911  911          71 Jul 27 16:40 21/

(obfuscated the folder names)

 

Yet when I move my docker volumes from /mnt/user/docker/xyz to /zfs/docker/xyz, the containers have all sorts of permissions issues writing to their config folders. For example, Plex won't start, UNMS throws permissions errors on its config folder, etc. I can't find any differences in UID/GIDs between the two docker folders, but every container I've tried so far has the same issue.

 

Any thoughts on what I'm missing?

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.