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.
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.
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:
Step 3: Start the docker service
This will Start the docker service in your OS.
Step 4: Pull Image you created (in my case it is himangini20/firefox)
Step 5: Now run the following command to launch the Firefox GUI
as you can see the command is still executing when the command is executed successfully the Firefox GUI will open.
Voila! Your application is running.
if you find this blog helpful do like it. Thankyou for reading.
System Engineer(Java)@TCS || 5? Java @Hackerrank || SpringBoot || 3+ Years of Experience in developing enterprise applications || Microservices
3 年Helpful