-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Would it be possible to use this on macOS using xQuartz? #8
Comments
I also ran into this issue. Here's my workaround:
In remove the line remap the display to run over tcp by replacing the DISPLAY spec on In At the beginning somewhere (I have it right after the
The main issue is that docker for mac doesn't allow shared unix sockets between host and containers. The workaround is to use Note that X running over TCP is generally not safe; the If there is interest, I can try to make a PR. I don't really understand how the |
@rmaronson, using your workaround I managed to install and run the docker image (I've used ROS Noetic on Ubuntu), however whenever I try to run Gazebo or RViz I still get error messages. Running Gazebo:
Running RViz:
I can see socat has a process running using ps -a:
Any ideas what is going on? |
I'm not sure what you're running into. I should say: I ended up giving up on x-forwarding, since I had an issue getting graphical acceleration/glx working over that socket. I'm now using this package + noVNC and combining the docker images together. Unfortunately I can't track down exactly which noVNC image I worked from (might be https://hub.docker.com/r/babim/ubuntu-novnc), but it looks like there are several available. |
Thanks @rmaronson, I've managed to start the ros-box container by simplifying the build instructions removing the xauth hooks and following the procedure on this post. However, I fell under the same rabbit hole and now have an error running 3D accelerated graphics (gazebo/rviz)... Something about libGL error and swrast driver: https://stackoverflow.com/questions/44166269/libgl-error-failed-to-load-driver-swrast-in-docker-container |
I've installed xQuartz and tried running this docker-box, but I get an error I can quite figure out how to handle.
When installing:
~/> ./init-ros-box.sh melodic ~/ROS
Prepare the target environment...
Build the docker image... (This can take some time)
sha256:xxx
create a new container from this image...
xauth: (argv):1: unable to read any entries from file "(stdin)"
ca40c0b23e3b1c645a24c665c2e8f72cc4582ef911422ac9a35bd607b81dae1b
Then, when running:
~/> ./go.sh
Starting previously stopped container...
Error response from daemon: error gathering device information while adding custom device "/dev/dri/card0": no such file or directory
Error: failed to start containers: ca40c0b23e3b
Error response from daemon: Container ca40c0b23e3b1c645a24c665c2e8f72cc4582ef911422ac9a35bd607b81dae1b is not running
Anyone knows how to get this up and running?
Thanks
The text was updated successfully, but these errors were encountered: