Running a GUI application on docker

Hello Friends!!😌😌
Back with some interesting task on docker,
🎯Task Description:
- Launch container on docker in GUI mode
- Run any GUI software on the container
Docker:
Docker is an open platform for developing, shipping, and running applications. Docker enables you to separate your applications from your infrastructure so you can deliver software quickly. With Docker, you can manage your infrastructure in the same ways you manage your applications. By taking advantage of Docker’s methodologies for shipping, testing, and deploying code quickly, you can significantly reduce the delay between writing code and running it in production.
So lets start guys,
- Installing docker:
Install docker using this command
yum install docker-ce — nobest
(There’s double hyphen before nobest)
2. Pull centos image from Dockerhub:
docker pull centos
3. Run the container in GUI mode

— env= using the environment variable(DISPLAY)
— net = for using hosts’ network
Now we are inside the docker container here, as there’s no firefox installed inside the docker centos image

4. Install firefox and run it:


5. Now install python3 to launch the jupyter notebook:

6. Install Jupyter and lauch the jupyter notebook:



So, here we have launched firefox and jupyter notebook both the GUI softwares inside the Docker container.
Hope you all will love this blog!!☺️
Keep Sharing!🎊
Thanks for reading!!!💯💯🙏