Skip to content

How to disable user data directory permission changes #153

Answered by felddy
jbking93-git asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @jbking93-git,

I'm glad you've found the container useful!

You can prevent the container from modifying the permissions of the /data volume using the CONTAINER_PRESERVE_OWNER environment variable. Here is the relevant section from the README.md:

Name Purpose
CONTAINER_PRESERVE_OWNER Normally the ownership of the /data directory and its contents are changed to match that of the server at startup. Setting this to a regular expression will exclude any matching paths and preserve their ownership. Note: This is a match on the whole path, not a search. This is useful if you want mount a volume as read-only inside /data (e.g.; a volume that contains assets mounted at /data/Data/assets).

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@boideltier
Comment options

@felddy
Comment options

@boideltier
Comment options

Answer selected by felddy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants