Various docker images I create
Make sure to set the right permission to the X server for your docker user by running this command :
xhost +SI:localuser:$(id -un)
Or if you are running docker as root :
xhost +SI:localuser:root
If you have any doubt you can also authorize anyone to connect to your X server but it's not recommended :
xhost +