Sample Header Ad - 728x90

Why are these xhost commands used here for running a docker container?

-2 votes
1 answer
1231 views
I am running a docker container. The suggested way to run it is $ xhost + access control disabled, clients can connect from any host $ sudo docker run -it --rm --ipc=host -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix:ro [...] $ xhost - access control enabled, only authorized clients can connect What do the two xhost commands do? Why are they needed here with running a docker container? What are their equivalents for SwayWM (Wayland)? Thanks.
Asked by Tim (106420 rep)
Apr 17, 2022, 04:25 PM
Last activity: Apr 17, 2022, 04:46 PM