GUI CONTAINER ON THE DOCKER

Docker is a set of platform as a service (PaaS) products that use OS-level virtualization to deliver software in packages called containers.Containers are isolated from one another and bundle their own software, libraries and configuration files; they can communicate with each other through well-defined channels.

There are two ways in which we can interact with any OS :

  1. Using Command Line Interface: In this method we processes commands to a computer program in the form of lines of text.
  2. Using Graphical User Interface : In this method we interact with the help of graphical icons to do any process.

Docker is a powerful tool but it has minimal resources and using software that require graphical resources uses more resources than using CLI. So there are very less use cases in which GUI container is used on the top of Docker.

But this process can be done just by doing some steps which are as follows:

Step 1:

Pull the docker image , run the OS and enable the display of the OS.For that we can use the following command:

Step 2:

Install the GUI program you want to run using yum install command. In this example I am installing the firefox.

Step 3:

After installing just run the firefox using “firefox” command.

Finally your firefox will run in the GUI container on Docker.

Open for any Queries and Suggestions .

Thank you