I've been using xhost from x11-xserver-utils, but looking at the package page it says:
" - xhost, a very dangerous program that you should never use;"
I haven't found a clear answer for the non-initiated: Why is xhost dangerous?
I've been using it so I can run programs with graphical user interfaces within docker containers in linux. Should I worry? I usually do it as follows:
xhost +
xhost local:root
docker run -it -v/tmp/.X11-unix -e DISPLAY=unix$DISPLAY image_name
Is there a known safe alternative to this?