RUNNING GUI APP INSIDE DOCKER CONTAINER.

RUNNING GUI APP INSIDE DOCKER CONTAINER.

1-Check whether docker services are running or not.

No alt text provided for this image

2-Pull any image , in my case I pulled centos latest .

No alt text provided for this image

3- Now launch the container with below command.

docker run -it --net=host --env="DISPLAY" centos:latest
No alt text provided for this image

4-After successfully launching container, install firefox.

No alt text provided for this image

5- Now after we run firefox command, firefox(which is a GUI application) will run successfully.

No alt text provided for this image

THANKS FOR READING!


AAFAQ RASHID

DevOps Engineer at Comprinno Technologies | AWS Certified Security - Specialty

3 年

Very useful

要查看或添加评论,请登录

Absar Qureshi的更多文章

  • Zenity: Red Hat Enterprise Linux 8.4

    Zenity: Red Hat Enterprise Linux 8.4

    What is Zenity? Zenity is an open source and a cross-platform application which displays GTK+ Dialog Boxes in…

    2 条评论
  • K-means Clustering & it’s Real use-case in the Security Domain.

    K-means Clustering & it’s Real use-case in the Security Domain.

    What is clustering Clustering is one of the most common exploratory data analysis technique used to get an intuition…

  • How Google Bot Uses Javascript?

    How Google Bot Uses Javascript?

    JavaScript is an important part of the web platform because it provides many features that turn the web into a powerful…

  • CYBER CRIME AND CONFUSION MATRIX.

    CYBER CRIME AND CONFUSION MATRIX.

    Confusion matrix is a fairly common term when it comes to machine learning. Today I would be trying to relate the…

    1 条评论
  • Deploying Machine Learning Model inside a Docker container.

    Deploying Machine Learning Model inside a Docker container.

    *Docker is an open platform for developing, shipping, and running applications. Docker enables you to separate your…

社区洞察

其他会员也浏览了