-
|
I may be a docker newbie however, when I create a new stack, and the application compose has a separate app data directory for example /opt/appdata/applicationexample. If this directory does not exist, and I bring up the stack, it creates this directory as root. The parent directory is owned by the user the user has docker access. Is this expected? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
|
Yes since dockman is running as root it will create root directories. |
Beta Was this translation helpful? Give feedback.
-
|
Thank you - so i should create outside of dockman or chwon after? just trying to get workflow down. |
Beta Was this translation helpful? Give feedback.
-
|
Up to you I mostly don't care since I no longer touch my compose folder directly You can chown once dockman preserves perms when writing |
Beta Was this translation helpful? Give feedback.
-
|
Sorry to clarify the containers cannot write to the appdata directories (not the stacks directory) because they are running as my regular user and not root. Is this the correct behavior? |
Beta Was this translation helpful? Give feedback.
-
|
Yes in that case you will have to chown |
Beta Was this translation helpful? Give feedback.
Yes in that case you will have to chown