You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
X11 communication between the container and host routes through TCP sockets. Although I have tried to make use of unix sockets, as of today, they are not (completely) supported my docker on mac (docker-for-mac/osxfs).
In this scenario, X11 bind between container and host (dockeri and Xorg/XQuartz) need an alive network interface; we need an IP address to where the docker-machine will route X11 data.
What happens when we shut down the wi-fi interface is the loss of the IP/interface that dockeri had chosen to use for X11 routing.
One alternative I have in mind is to create a virtual network interface, associate a dummy IP to it (e.g, 198.168.1.1) and bind the X11/DISPLAY to it. In theory, this interface would never go down.
OK. I put some more reading on the subject. I will digest that in the next days, but I'll leave it here for the records and...a second reading soon.
First, a long discussion on the subject "unix sockets on MacOS & Docker", since unix sockets would be right (at least the most elegant) solution to the issue:
Regarding unix sockets -- in particular using it for X forwarding -- there are lots of posts out there about doing it on Linux; no secrets, but it is worth list some good ones:
dockeri works ok with existing containers while the host is connected to the network. Turning off wi-fi causes an error, e.g. (on a mac)
The text was updated successfully, but these errors were encountered: