Ask Your Question
1

adding GUI to docker on OSX

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

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

2 Answers

Sort by ยป oldest newest most voted
0

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

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 2017-08-24 15:30:39 -0600

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

Your Answer

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

Add Answer

Question Tools

1 follower

Stats

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

Seen: 793 times

Last updated: Aug 24 '17