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
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
yum install firefox
pip3 install jupyter notebook
Step 3:- Run the firefox and Run the jupyter notebook
jupyter notebook --allow-root
Thank you for Reading