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

Found the answer. On my system I was running docker from under root (sudo docker instead of just docker inside run_my_image.sh).
To allow root user the access to running server one must run (on the host machine) the following command
$ xhost +si:localuser:root
Now I am able to run RViz and Gazebo.

Found the answer. On my system I was running docker from under root (sudo docker instead of just docker inside run_my_image.sh).
To allow root user the access to running X server one must run (on the host machine) the following command
$ xhost +si:localuser:root
Now I am able to run RViz and Gazebo.