ModelSim Version 16 GUI Running under docker container
First you need to exec the xauth list
on your host terminal. The aprox result will be:
<hostname-of-machine>/unix: MIT-MAGIC-COOKIE-1 <some number here>
Then exec echo $DISPLAY
. The result will be :1 or :0
Run the container with the following command:
sudo docker run -i -t --name modelsim --net=host -e DISPLAY -v /tmp/.X11-unix goldensniper/modelsim-docker bash
Now inside the container exec the following command:
xauth add <hostname-of-machine>/unix:<no-of-display> MIT-MAGIC-COOKIE-1 <some number here>
Where the third arg is the result of xauth list
command on your host and <no-of-display>
is the $DISPLAY host machine value.
Finally exec vsim
and enjoy. :)