GUI application inside Docker

GUI application inside Docker

Hello everyone🤗

This is the article on how to launch a GUI application inside Docker. I have used Redhat Linux as a docker host and CentOS as a container to launch firefox.

******************************************************************


No alt text provided for this image

Task_2 Description:

📍 Launch a container on docker in GUI mode 

🏁 Run any GUI software(like firefox) on the container



******************************************************************

1.Create a workspace and then create a file inside it

No alt text provided for this image

2. Write the code below inside the file created

No alt text provided for this image

3. Build the image with the command:

docker build -t <image_name> .
No alt text provided for this image
  • to check if the image is installed or not
No alt text provided for this image

4. Below is the code to launch GUI application on docker

dcoker run -it --env="DISPLAY" --net=host --name=<application_name> <created_image_name>
No alt text provided for this image
No alt text provided for this image


******************************************************************

No alt text provided for this image
Thanks for reading
😊

To view or add a comment, sign in

More articles by Mukul Pramanik

  • K-means Clustering and its use case in the security domain

    Nowadays, the network has become the basis of everything. Meanwhile, network security has become one of today's most…

    1 Comment
  • Web Application for Docker

    Task Description 📄 This app will help the user to run all the docker commands like: 👉docker images👉docker ps…

    6 Comments
  • Javascript use cases

    Netflix Over time, Netflix moved away from its more traditional structure into the cloud and started to introduce…

  • Local Server Video Chat Program

    This is an exciting team task in which we need to write a code for video streaming but without audio. To do so, we need…

    12 Comments
  • Playing with OpenCV

    OpenCV (Open Source Computer Vision Library) is an open-source library of programming functions mainly aimed at…

    10 Comments
  • Confusion matrix & Cybersecurity

    ___________________________________________________________ What is a Confusion Matrix? A Confusion matrix is an N x N…

    3 Comments
  • Executing ML model inside Docker

    Hello everyone😊 This is the article on "Executing ML model inside docker." I have used Redhat Linux as a docker host…

    14 Comments

Explore content categories