Launching GUI Firefox on top of Docker Container

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.

No alt text provided for this image

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>

No alt text provided for this image

After it is launched we will install the firefox.

STEP-3

Once firefox is installed then we just have to open it.

No alt text provided for this image

And then the firefox application will be launched.

No alt text provided for this image

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.



Baijnath Gound

AIR 2495 GATE CS '24 | AIR 3661 GATE CS '23

3y

Great job

To view or add a comment, sign in

More articles by Ramanpreet Kaur

  • Confusion Matrix & Cyber Security

    When we train any model in machine learning the main goal is to create a model that is pretty accurate and gives an…

    4 Comments
  • Deploying Machine Learning into Docker Container

    TASK -01 Task Description :- 👉 Pull the Docker container image of CentOS image from DockerHub and create a new…

    1 Comment

Insights from the community

Others also viewed

Explore topics