Andrew0Hill / NURS6293_environment

Docker-based environment to provide desktop interface and database access for NURS 6293.
0 stars 0 forks source link

File write permission #2

Closed mgkahn closed 2 months ago

mgkahn commented 2 months ago
image

I think this can be fixed: In launchDesktop.sh: add USER_ID=id -u; GROUP_ID=id -g (I do not know the equivalent in WINDOWS) In dcoker-compose.yml: Replace
environment:

Andrew0Hill commented 2 months ago

I can fix this too, I was going to suggest that we set up everything to write to the /host_shared folder though (which users should have write access to), just so we minimize the damage if the container is deleted on accident.

mgkahn commented 2 months ago

I agree putting everything in /host_shared folder will allow persistence across reloads/updated images. We just need to make sure the local mount is written using the local user's UID/GID rather than 1000/1000.

Andrew0Hill commented 2 months ago

Fixed, host_shared works correctly now.