You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The solution here is to map the host uid and gid to the container during run time. To allow the host local to edit a file created by the container, GB_UMASK needs to be changed from the default read-only.
Note that this option only takes 2 digits as possible entries. Since the permissions don't match the local user, we need to make sure "other" users have write access which requires setting GB_UMASK=1.
This looks like its really only a problem on linux machines using docker desktop. MacOS docker desktop interacts with mounted volumes through docker-compose fine. That said I've been test running the jupyter notebook using docker run on the CLI instead of compose; maybe compose handles this somehow? If not maybe a newer version of linux docker desktop has fixed this?
Test file write from container to host using docker-compose on linux
UPDATE: docker compose on linux doesn't automatically handle this. Since this isn't an issue with macos, I can simply proceed with that for the time being, but I'll review the docker desktop updates on linux to see if this updates this issue.
- [ ] review and update docker desktop on linux
The current version on lobata is the latest available through apt based on the OS version. Postpone this.
glemieux
changed the title
Determine why container notebook won't save to local files
Optional: Determine why container notebook saves to local host with a weird user id and group (linux only)
Aug 14, 2024
glemieux
changed the title
Optional: Determine why container notebook saves to local host with a weird user id and group (linux only)
(Optional): Determine why container notebook saves to local host with a weird user id and group (linux only)
Sep 4, 2024
glemieux
changed the title
(Optional): Determine why container notebook saves to local host with a weird user id and group (linux only)
Determine why container notebook saves to local host with a weird user id and group (linux only)
Sep 9, 2024
See https://jupyter-docker-stacks.readthedocs.io/en/latest/using/troubleshooting.html#permission-issues-after-changing-the-uid-gid-and-user-in-the-container
The text was updated successfully, but these errors were encountered: