I have a GUI that is launched inside my docker container that I want to view over SSH.
Here is how I create my container:
SOCK=/tmp/.X11-unix docker run --name motiv_cont --gpus all -it --privileged --mount type=bind,source="/home/micra/.ros",target=/root/.ros --volume "$HOME/.Xauthority:/root/.Xauthority:ro" --network=host -e DISPLAY=$DISPLAY -v $XSOCK:$XSOCK hub/image
This works great for me. But if another user tries to use this container, it doesn’t work since the the DISPLAY and doesn’t get updated in the container.
Is there a way to get around this?