GUI container on the Docker

GUI container on the Docker

Task Description 📄

📌 GUI container on the Docker

🔅 Launch a container on docker in GUI mode 

🔅 Run any GUI software on the container

In this article i am going to enable graphical program inside docker container.

By default docker did not supports the graphical program like firefox, chrome one of the reason for this graphical program are generally heavy and use very high cpu and ram and graphical server (program responsible for running graphical program) take high time to boot.

But there is some ways we can enable graphic supports inside docker container and in this article i am going you to show the one one of the ways of doing this.

Steps for enable the graphical program inside docker container.

Step1 :- Launch Docker container with Display environmental variable cmd:- docker run -it -e DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix --name guios1 centos

No alt text provided for this image

Step 2:- Now we will install softwares i.e. python3, Firefox and Jupyter. Run cmd:- yum install python3 -y yum install firefox -y pip3 install jupyter notebook

yum install python36

No alt text provided for this image

yum install firefox

No alt text provided for this image

pip3 install jupyter notebook

No alt text provided for this image

Step 3:- Run the firefox and Run the jupyter notebook

jupyter notebook --allow-root

No alt text provided for this image
No alt text provided for this image

Thank you for Reading

To view or add a comment, sign in

More articles by Gargi Somani

  • K-means Clustering and its Real Usecase in the Security Domain

    What is K-Means Algorithm? K-Means Clustering is an unsupervised learning algorithm that is used to solve the…

  • Use Case of JavaScript

    What is JavaScript? JavaScript is a text-based programming language used both on the client-side and server-side that…

  • Confusion Matrix in Machine Learning with EXAMPLE of Cyber Crime

    What is Confusion Matrix? A Confusion matrix is an N x N matrix used for evaluating the performance of a classification…

  • Machine Learning Model inside Docker

    Task Description 📄 👉 Pull the Docker container image of CentOS image from DockerHub and create a new container 👉…

  • Kubernetes

    What is Kubernetes? Kubernetes, also known as K8s, is an open-source system for automating deployment, scaling, and…

  • What is Ansible ?

    Ansible is a software tool that provides simple but powerful automation for cross-platform computer support. It is…

  • How do AI virtual assistants work?

    What Is Artificial Intelligence (AI)? Artificial intelligence (AI) refers to the simulation of human intelligence in…

  • Case Study on VR AR Gaming Industries working with AWS

    Cloud Computing is one of the necessary skills in today's world. Most of the companies, no matter they belong to which…

  • How Big Is Facebook’s Data? and What is the solution to handle data?

    The Amount of Data Created Each Day on the Internet in 2019 In 2014, there were 2.4 billion internet users.

Explore content categories