Launch GUI Application(Jupyter) on the Top of Docker.
๐ GUI container on the Docker
๐ข Launch a container on docker in GUI mode
๐ข Run any GUI software on the container.
๐คฉLetโs see the steps to launch it !!
1.) Check Docker status using command:
systemctl status docker
2.) Check for the Docker image by using: docker images
I am using latest version of centos here.
Now we have to run the container by providing this command:
docker run -it โ name <container_name>โ net=host โ env=โDISPLAYโ centos:latest
3.) To run Jupyter Notebook, we need to install python using command:
yum install python3 -y
4.) Now install firefox to run Jupyter Notebook using command:
yum install firefox -y
5.) Now we have to install Jupyter using the command:
pip3 install jupyter
We are now ready to run Jupyter Notebook (GUI Application) in Docker
6.) Now we have to run this command to run Jupyter Notebook:
jupyter notebook โ allow-root
As soon as you hit enter, our Jupyter Notebook starts to run
So guys in this way we can run the jupyter on the top of dockerโฆ๐
In the same way, we can run any GUI Application on the top of Docker.
Thank you so much for reading !!!๐๐