How to Launch Firefox GUI Using Docker

"Docker’s normally used to containerise background applications and CLI programs. But, You can also use it to run graphical programs i.e GUI"

In this blog I will explain how to Launch Firefox GUI inside Docker Container that is running on the top of Redhat Linux 8.

No alt text provided for this image

Task Description ??

?? GUI container on the Docker

?? Launch a container on docker in GUI mode

?? Run any GUI software on the container

Why Run GUI Apps in Docker?

Running a GUI program in Docker can be a useful technique when you’re evaluating a new piece of software. You can install the software in a clean container, instead of having to pollute your host with new packages.

This approach also helps you avoid any incompatibilities with other packages in your environment. If you need to temporarily run two versions of a program, you can use Docker to avoid having to remove and reinstall the software on your host.

Lets get started!!!!

Follow the Steps Below to launch GUI Container:

Step 1: Configure the Docker repo with extension “.repo” in “/etc/yum.repos.d” folder.

No alt text provided for this image

After Configuring the docker repo file run the command:

yum repolist

this command will enable the repository newly created.

Step 2: Install the docker

Install the docker using following command:

No alt text provided for this image

Step 3: Start the docker service

No alt text provided for this image

This will Start the docker service in your OS.

Step 4: Pull Image you created (in my case it is himangini20/firefox)

No alt text provided for this image

Step 5: Now run the following command to launch the Firefox GUI

No alt text provided for this image
No alt text provided for this image

as you can see the command is still executing when the command is executed successfully the Firefox GUI will open.

No alt text provided for this image

Voila! Your application is running.

if you find this blog helpful do like it. Thankyou for reading.

Sahil Gupta

System Engineer(Java)@TCS || 5? Java @Hackerrank || SpringBoot || 3+ Years of Experience in developing enterprise applications || Microservices

3 年

Helpful

要查看或添加评论,请登录

Himangini Khanna的更多文章

社区洞察

其他会员也浏览了