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

UID/GID in makefile for run-docker #309

Closed
DrEStaudinger opened this issue Jan 9, 2024 · 2 comments
Closed

UID/GID in makefile for run-docker #309

DrEStaudinger opened this issue Jan 9, 2024 · 2 comments

Comments

@DrEStaudinger
Copy link

DrEStaudinger commented Jan 9, 2024

Hi everybody,

in the Makefile you have a docker run command as follows:

docker run -u $(id -u):$(id -g) -p 8888:8888 --privileged=true $(GPU) --env NVIDIA_DRIVER_CAPABILITIES=graphics,compute,utility --rm -it sionna

For me, the option -u $(id -u):$(id -g) does not work, as the returned IDs are empty.
Changing it to -u $(shell id -u):$(shell id -g) solves it.

Cheers,
Emanuel

@DrEStaudinger
Copy link
Author

Update:
As the default passed UID and GID are empty based on the original Makefile, the user inside the docker container is root. With this setting, e.g., the ray-tracing tutorial works.
By setting it to "shell id -u" etc. the correct UID and GID are passed on, but the scripts do not work anymore.
E.g., Sionna_Ray_Tracing_Introduction.ipynb:
The kernel dies, as Matplotlib creates an error on the first executed python script lines: "Matplotlib created a temporary cache directory ... because the default path (/.config/matplotlib) is not a writeable directory.

Best, Emanuel

@jhoydis
Copy link
Collaborator

jhoydis commented Jun 12, 2024

Fixed in v0.18.

@jhoydis jhoydis closed this as completed Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants