ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Hi,

I am not sure if I had the exact same issue as you, but I did have issues having rviz operate with docker. What I had to do was also install openGL libraries when creating the docker image, i.e. using the from command below. Something about a dependency somewhere relying on openGL...I will try find the original forum I used to find this solution

FROM nvidia/cudagl:10.0-devel-ubuntu16.04

I have these commands in my docker run command, and I remember one or the combination of them enabled me to run rviz display through docker, presumably you already have them but just in case these link the docker display with the actual display.

docker run -e DISPLAY=$DISPLAY --env="QT_X11_NO_MITSHM=1" -e DISPLAY=$DISPLAY --env="QT_X11_NO_MITSHM=1" ... (rest of command etc here).

Hope this helps!

Hi,

I am not sure if I had the exact same issue as you, but I did have issues having rviz operate with docker. What I had to do was also install openGL libraries when creating the docker image, i.e. using the from command below. Something about a dependency somewhere relying on openGL...I will try find the original forum I used to find this solution

FROM nvidia/cudagl:10.0-devel-ubuntu16.04

I have these commands in my docker run command, and I remember one or the combination of them enabled me to run rviz display through docker, presumably you already have them but just in case these link the docker display with the actual display.

docker run -e DISPLAY=$DISPLAY --env="QT_X11_NO_MITSHM=1" -e DISPLAY=$DISPLAY --env="QT_X11_NO_MITSHM=1" ... (rest of command etc here).

Hope this helps!

Hi,

I am not sure if I had the exact same issue as you, but I did have issues having rviz operate with docker. What I had to do was also install openGL libraries when creating the docker image, i.e. using the from command below. Something about a dependency somewhere relying on openGL...I will try find openGL (see here for a discussion on the original forum I used to find this solutionsame problem https://github.com/diegoferigo/dockerfiles/issues/6)

FROM nvidia/cudagl:10.0-devel-ubuntu16.04

I have these commands in my docker run command, and I remember one or the combination of them enabled me to run rviz display through docker, presumably you already have them but just in case these link the docker display with the actual display.

docker run -e DISPLAY=$DISPLAY --env="QT_X11_NO_MITSHM=1" -e DISPLAY=$DISPLAY --env="QT_X11_NO_MITSHM=1" ... (rest of command etc here).

Hope this helps!