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 :
- Using Command Line Interface: In this method we processes commands to a computer program in the form of lines of text.
- 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:
Pull the docker image , run the OS and enable the display of the OS.For that we can use the following command:
Install the GUI program you want to run using yum install command. In this example I am installing the firefox.
After installing just run the firefox using “firefox” command.
Finally your firefox will run in the GUI container on Docker.