-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
File permissions for persistent_volume #77
Labels
bug
Something isn't working
Comments
tstescoTT
added a commit
that referenced
this issue
Jan 27, 2025
change log: - add docker-entrypoint.sh that dynamically ensures container has read/write permissions at runtime while using a non-root user to run applications - update Dockerfile to user docker-entrypoint.sh - update setup.sh to remove redundant setup_permissions and improve env var readability
There were two main options for giving the container read/write access and resolving common issues described above. option 1: run container with root userpro:
con:
option 2: entrypoint.sh script and non-root user for application runtime
pro:
con:
examples of this pattern with entrypoint.sh script:
|
tstescoTT
added a commit
that referenced
this issue
Jan 28, 2025
change log: - add docker-entrypoint.sh that dynamically ensures container has read/write permissions at runtime while using a non-root user to run applications - update Dockerfile to user docker-entrypoint.sh - update setup.sh to remove redundant setup_permissions and improve env var readability
tstescoTT
added a commit
that referenced
this issue
Jan 28, 2025
change log: - add docker-entrypoint.sh that dynamically ensures container has read/write permissions at runtime while using a non-root user to run applications - update Dockerfile to user docker-entrypoint.sh - update setup.sh to remove redundant setup_permissions and improve env var readability
tstescoTT
added a commit
that referenced
this issue
Jan 31, 2025
change log: - add docker-entrypoint.sh that dynamically ensures container has read/write permissions at runtime while using a non-root user to run applications - update Dockerfile to user docker-entrypoint.sh - update setup.sh to remove redundant setup_permissions and improve env var readability
Addressed in #78 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Container user must have r/w and host user must have r/w.
Some issues with existing design:
user
) in containergroupadd dockermount
andusermod -aG dockermount "$USER"
does not immediately take effect, groups are sticky in bash sessionThe text was updated successfully, but these errors were encountered: