How We Can Run GUI Container on the Docker-


📌GUI container on the Docker

🔅 Launch a container on docker in GUI mode.

🔅 Run any GUI software on the container like (Jupyter, Firefox).

What is 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.

Lets Perform The Task :-

Step 1 :- Check Docker is running in your Base OS is or not using cmd

“systemctl status docker”

Docker service started

Step 2 :- Check how many containers is running in docker using cmd :-

“docker ps -a”

Step 3 :- Pull the CentOS Image from docker Hub.

Step 4 :- Check CentOS pulled or not, if not then again run the pull cmd and after that run the docker container using the CentOS image in GUI mode.

Step 5 :- Launch the Container.

Step 6 :- As you can see in the below images name of prompt is changed after launch the container it means that our container launch successfully and we can perform any task on top of it, so let’s install the Firefox program using yum cmd .

Firefox install Successfully.

Step 7 :- Run the Firefox program.

We have successfully Run the GUI program like Firefox on the Top of Docker in GUI Mode.

Step 8 :- Now , Test another GUI program Jupyter on the Top of Docker is run or not, Let’s Start:-

i) First Install the Python.

ii) Then Install the Jupyter.

iii) And Run the Jupyter.

Finally we Test the Both Program In GUI mode on the Top of Docker it work Fine.!!!

!!!!Thank you😊😊!!!!

Tushar jain



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store