-
Notifications
You must be signed in to change notification settings - Fork 77
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
Make the xauth file persistant (instead of /tmp/.dockercfa2413r.xauth) when --nocleanup
is used
#273
Comments
The xauth file is how the display communicates with the server. https://www.x.org/archive/X11R6.8.1/doc/xauth.1.html It's a temporary file which is registered with the x server. rocker/src/rocker/nvidia_extension.py Line 65 in 9937f50
I believe that the file is only valid for the duration of operation of the x server with which it was registered. To make it persist across reboots you will likely need to create logic to recreate and rereguster the xauth file with the new xserver. Not just recreate the file or persist the file. |
I did some test, if I don't use |
rocker --x11 working as expected
trying it removing the xauth environment and mount and it fails to run.
I verified that if you run it with |
Hi,
This is a issue already mentioned at #170 but it's closed, I would like to reopen it.
When I use rocker (for autoware ), I want the container not to be cleaned after rocker exists, so I use
--nocleanup
with rocker, but that container is run by command likedocker run -it --network host --gpus all --privileged -v xxxxxx -e DISPLAY -e TERM -e QT_X11_NO_MITSHM=1 -e XAUTHORITY=/tmp/.dockercfa2413r.xauth -v /tmp/.dockercfa2413r.xauth:/tmp/.dockercfa2413r.xauth -v /tmp/.X11-unix:/tmp/.X11-unix -v /etc/localtime:/etc/localtime:ro <image_id>
which uses/tmp
file. That actually makes the container not able to be re-run after a host power reset since the/tmp
folder will be deleted.I'm not sure why
*.xauth
file is needed and why it's created into/tmp
folder.The text was updated successfully, but these errors were encountered: