Ask Your Question

Cannot use rviz under docker

asked 2018-10-11 19:52:34 -0500

iwtbm gravatar image

updated 2018-10-12 04:50:51 -0500

gvdhoorn gravatar image


I downloaded ros:indigo-ros-core-trusty from dockerhub and installed rviz for indigo. But I cannot start rviz in the new terminal. I have tried the method from . But rviz still does not work.

The error is like this:


libGL error: failed to load driver: swrast

libGL error: failed to load driver: swrast

rviz::RenderSystem: error creating render window: std::exception

[ WARN] [1539299284.774409653]: OGRE EXCEPTION(2:InvalidParametersException): Window with name 'OgreWindow(0)' already exists in GLRenderSystem::_createRenderWindow at /build/buildd/ogre-1.8-1.8.1+dfsg/RenderSystems/GL/src/OgreGLRenderSystem.cpp (line 1038)


Could anyone help me ?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-10-15 13:42:40 -0500

ruffsl gravatar image

As per your error message above, rviz is attempting to make use of OpenGL for 3D rendering. Depending on your host setup, you may need to enable hardware acceleration into the container to make use of OpenGL dependant applications.

Please see this related entry in the ROS wiki:

edit flag offensive delete link more



Or use Singularity ;)

gvdhoorn gravatar image gvdhoorn  ( 2018-10-15 14:10:19 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2018-10-11 19:52:34 -0500

Seen: 2,433 times

Last updated: Oct 15 '18