Skip to content
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

Determine why container notebook saves to local host with a weird user id and group (linux only) #29

Open
Tracked by #16
glemieux opened this issue Aug 13, 2024 · 2 comments

Comments

@glemieux
Copy link
Collaborator

glemieux commented Aug 13, 2024

@glemieux
Copy link
Collaborator Author

glemieux commented Aug 13, 2024

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.

@glemieux
Copy link
Collaborator Author

glemieux commented Aug 14, 2024

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 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 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 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant