You can use the same Xorg instance:
docker run --rm -ti -e DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix ubuntu:focal bash apt update apt install -y peek peek
root@1c26d4121e74:/# peek No protocol specified (peek:3525): Gtk-WARNING **: 10:24:14.930: cannot open display: :0 root@1c26d4121e74:/#
I am on GNOME40 on Xorg.
Maybe its related to me being on rootless docker? Might be that you need to create a user with the same uid as the host for your case.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
You can use the same Xorg instance:
I am on GNOME40 on Xorg.
Maybe its related to me being on rootless docker? Might be that you need to create a user with the same uid as the host for your case.