Launching GUI Firefox on top of Docker Container
TASK DESCRIPTION-02
-Launch a container on docker in GUI mode
- Run any GUI software on the container
To perform this task we are using REDHAT LINUX(RHEL-8) as our Base OS with Docker installed in it.
STEP-1
Pull any docker image from your O.S in my case I'm pulling centos as it is already installed in my OS.
After it has been pulled we have to provide an environment variable to run our GUI.
STEP-2
Now we have to provide an environment variable which will display our GUI while launching a new container. In this container we will launch our GUI application.
Using the command #docker run -it --net=host --env="DISPLAY" <image name>
After it is launched we will install the firefox.
STEP-3
Once firefox is installed then we just have to open it.
And then the firefox application will be launched.
We have successfully launched GUI Firefox on top of Docker Container.
Similarly we can launch many more applications.
Thank you for reading! Hope you like it.
AIR 2495 GATE CS '24 | AIR 3661 GATE CS '23
3yGreat job