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

adding GUI to docker on OSX

asked 2017-08-22 08:25:12 -0500

sushil.sundaram gravatar image

I am trying to attach my macbook-air display to a docker container osrf/ros:lunar and getting this error any ideas?

 Sushils-MacBook-Air:~ sushilsundaram$ docker run -it --env=$DISPLAY --name ROS-lunar osrf/ros:lunar-desktop-full rqt
 QXcbConnection: Could not connect to display

When i run echo $DISPLAY

Sushils-MacBook-Air:~ sushilsundaram$ echo $DISPLAY
/private/tmp/com.apple.launchd.1SRZN6cAkV/org.macosforge.xquartz:0
edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted
2

answered 2019-03-12 21:58:33 -0500

reverofggol gravatar image

It is quite hard to set up unix socket. You might consider using VNC server in the container instead. See below: https://hub.docker.com/r/ct2034/vnc-ros-kinetic-full/

edit flag offensive delete link more
0

answered 2020-09-08 15:09:06 -0500

Prince Bansal gravatar image

updated 2020-09-13 04:19:47 -0500

Hi. I was able to run GUI successfully using VNC interface. Checkout my blog https://medium.com/@iamprincebansal/c.... This might be helpful for you.

edit flag offensive delete link more

Comments

Link-only answer answers are discouraged as external websites/pages often go down or disappear. Can you please update your answer with the relevant information?

jayess gravatar image jayess  ( 2020-09-13 22:36:01 -0500 )edit

The blog is quite extensive. I have updated the link. Thanks :)

Prince Bansal gravatar image Prince Bansal  ( 2020-09-14 02:39:33 -0500 )edit
0

answered 2017-08-24 15:30:39 -0500

ruffsl gravatar image

I'm not sure the container inside the Docker-For-Mac virtual machine running on top of OSX can simply connect your host's display server via unix socket. You may have an easier time instead using the x11 forwarding over ssh for your setup, see this section:
http://wiki.ros.org/docker/Tutorials/...

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2017-08-22 08:25:12 -0500

Seen: 1,746 times

Last updated: Sep 13 '20