Sitemap

Run GUI on Docker Container

Jun 1, 2021
Press enter or click to view image in full size

In this Blog, we launch the GUI application on Docker Container.

First, we have to install the Docker in rhel8 After follow these steps:-

Step1:- Create a directory on your local machine.

>mkdir Task

Press enter or click to view image in full size

Step2:- After entering the created library. We have to create a docker file in vi text editor.

>vi dockerfile

Press enter or click to view image in full size

Step3:- Then Create a file for the firefox docker container image.

Press enter or click to view image in full size

Step4:- To build a docker image using this command.

>docker build -t firefox .

Step5:- After build the image, We have to run the container.

-> docker run -it — name firefox — env=”DISPLAY” — net=host firefox

Press enter or click to view image in full size

Then launch the image and show the Firefox in GUI :)

Press enter or click to view image in full size

--

--

No responses yet