Run GUI Application Inside Docker Container..


Step 1. Start Docker
command: systemctl start docker
Step 2 . Check Docker Status
command: systemctl status docker
Step 3. Pull the Docker Image
command: docker pull centos:latest

Step 4. Launch Container
command: docker run -it — name docke-gui — net=host — env=”DISPLAY” — volume=”$HOME/.Xauthority: root/.xauthority:rw” centos:lastest

Step 5. Launch GUI application inside container
command: yum install firefox python3 -y

Step 6. Install jupyter inside docker container
command: pip3 install jupyter

Step 7. Launch jupyter notebook inside container
command: jupyter notebook — allow-root

Task Completed successfully!
My LinkedIn Profile: