How to run GUI linux application inside docker container
References:
- https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-20-04-ru
- https://www.kali.org/docs/containers/installing-docker-on-kali
- https://www.howtogeek.com/devops/how-to-run-gui-applications-in-a-docker-container
- https://janert.me/guides/running-gui-applications-in-a-docker-container
- https://www.geeksforgeeks.org/running-gui-applications-on-docker-in-linux
docker run --net host -e DISPLAY=$DISPLAY -v /tmp/.X11-unix/:/tmp/.X11-unix -it ubuntu:20.04
xhost +local:
xhost +local:*