GUI container on the Docker

Dheeraj Singhal
2 min readJun 1, 2021

Hello connections,

Hope you are safe and doing well :)

In this article, I am going to do the task which was assigned to me in the Summer training internship.

Task Description 📄

📌 GUI container on the Docker

🔅 Launch a container on docker in GUI mode

🔅 Run any GUI software on the container

What is Docker?

Docker is a software platform that allows you to build, test, and deploy applications quickly. Docker packages software into standardized units called containers that have everything the software needs to run including libraries, system tools, code, and runtime.

Steps to follow :

First, You have a Linux installed in your system preferably RedHat Linux (REHL 8).

Next, you should configured YUM on it.

Now, You should have docker installed on linux.

Now, I will procced

Step 01 : Start the docker services by the following command :

$ systemctl start docker

Step 02 : Pull the centos image by :

$ docker pull centos:8

to check centos is pulled use :

$ docker images

Step 03:- Check the docker images and launching a container

$ docker run -it — env=”DISPLAY” — net=host — name os1 centos

Step 04 : Install firefox in the docker container

$ yum install firefox

Step 05 : Launch the firefox using command

$ firefox

And see the results

That’s all for this blog, hope you liked it.

You can also follow me on my Linkedin profile by clicking on following link.

--

--