Dockerized VNC server problems

I keep getting hangs of dockerized VNC servers. I’ve tried my images and the images of others online. I can open for example an xterm, but when I move the focus out of that window and back, the entire vnc server seems to hang.

I think it is related to unix socket traffic between the vnc server and the x11 applications connected to it. The unix socket is created at runtime inside the container. I see lots of EAGAIN errors on a unix socket the xterm is sending and receiving traffic with.

Anyone else run into this? Any ideas?

Looks like it might be the macos vnc client (under macos 10.12.5 with the recent ARD client update). I’ve connected with a third party client to the same container and had zero problems.

See also: https://discussions.apple.com/thread/857843?tstart=0