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

@AndreV84 Thanks for trying Autoware.Auto! The problem you're running into is a common one with Docker and GUI applications. GUI tools like Rviz require an X context in which to run so they can draw things on your screen. However, by default, Docker containers don't have this access to the host machine. There are two ways to get around this:

  1. Install rviz2 on your host machine and allow Docker to access your host machine's network with the --net=host flag. You can add this to your ade start command like this: ade start --update -- --net=host and then run ade enter seperately.

  2. This option is less secure but you don't have to install anything on your host machine. Just add the --priveleged flag instead: ade start --update -- --priveleged. Then, as with 1, run ade enter seperately. Be aware that this gives the Docker container unrestricted access to your host machine but I haven't seen a good solution for running GUI applications inside a container other than this.