Here is one of my projects on Github, it's called labelImg which was written in Python + PyQt. You can follow the below videos or the snippet of the commands to run Python + PyQt GUI application inside the Docker container.
Step1: Clone the source code from Github
$ git clone https://github.com/tzutalin/labelImg.git
Step2: Pull the Docker image which is based on Python + PyQt. You can refer to its Dockerfile.
$ docker pull tzutalin/py2qt4Step3: Get started with the application and container
docker run -it \ --user $(id -u) \ -e DISPLAY=unix$DISPLAY \ --workdir=$(pwd) \ --volume="/home/$USER:/home/$USER" \ --volume="/etc/group:/etc/group:ro" \ --volume="/etc/passwd:/etc/passwd:ro" \ --volume="/etc/shadow:/etc/shadow:ro" \ --volume="/etc/sudoers.d:/etc/sudoers.d:ro" \ -v /tmp/.X11-unix:/tmp/.X11-unix \ tzutalin/py2qt4Then, you will see that we can run GUI inside the container.
If you want to get more detailed information, you can check out the following video.
After trying to do
ReplyDeletepython labelImg.py
I got a message 'Cannot connect to X server unixlocalhost:12.0'
How can I solve this ?
I think that you tried to connect via ssh.
DeleteThanks for sharing!! That's a really interesting article.
ReplyDeleteDevOps Training
DevOps Online Training
DevOps Training in Ameerpet
It is very much useful for my research. DevOps Training in Bangalore | Certification | Online Training Course institute | DevOps Training in Hyderabad | Certification | Online Training Course institute | DevOps Training in Coimbatore | Certification | Online Training Course institute | DevOps Online Training | Certification | Devops Training Online
ReplyDeleteWifi Password Hacker you container demonstration your networks that Wifi Key hacker is a request that aid you slave watchword of a wifi system. Hack Wifi Password Online
ReplyDeleteDownload Wickr Me – Private Messenger Mod APK files and Original APK file. ... Accelerated up to 200% with dFast Torrent Cloud™ Enjoy the fastest download .Wickr Me 5.104.14 Crack
ReplyDelete