I see you’re mounting -v /tmp/wayland-0:/tmp/wayland-0
, but I believe the socket is created at /tmp/1000-runtime-dir
. -v
has this footgun in which, if you mount a file/directory that doesn’t exist, it will happily create that file/directory inside the container.
Incidentally, I have a small sample that I just pushed to GitHub that also uses tk (although with pysimplegui
) and it works nicely: GitHub - leonheldattoradex/pysimplegui. In this example I just mount the whole /tmp
volume.