Sharing the Xserver with docker container

Ryan Schmidt ryandesign at
Mon Jan 25 02:30:45 UTC 2021

On Jan 24, 2021, at 18:01, Tong Sun wrote:

> For any Xserver in host, I normally just do the following in the
> docker container
> export DISPLAY=':0'
> xterm &
> and I'll be all set.
> However, I found that it is not the case for Xserver from macport, as
> I see my DISPLAY in my host is
> DISPLAY=/private/tmp/
> How can I share that with my docker container?

I'm not sure. Did you try first starting the X server on your Mac, and then doing what you did before in Docker?

More information about the macports-users mailing list