GUI Applications On The Top Of DOCKER
What is Docker?
Docker is an open source project that makes it easy to create containers and container-based apps. With the help of Docker, we can launch the containers in just some seconds.
Now, you might expect the docker container to run the GUI application for you and display the same on your screen. But using normal docker run commands, you won't be able to see or interact with the GUI applications. You need to connect the display with the container in order to do so. In this article, we will discuss how to do exactly the same.
So, Let's Start with the Implementation Part:-
Step1 - First of all, configure YUM for Docker before installing the Docker Software in the VM. Follow the steps given below for configuring the YUM for Docker:-
Step2:- Use "yum repolist" command to check whether the yum is configured successfully or not.
Step3:- Install Docker Software by using command given below.
Step4:- Verify the software whether it is successfully installed or not using "docker --version".
Step5:- Now, start the docker services and use "docker images" command for viewing the docker images available.
Step6:- For downloading the Centos Image from Docker Hub, use the following command.
Step7:- Create a separate Workspace for Docker.
Step8:- Create a Dockerfile using vi editor.
Step9:- Then build the Docker Image and use "docker images" command for verifying whether the image is successfully created or not.
Step10:- Create a Docker Container using firefox image with some environment variables. And as soon as you run the command given below, you will be landed to the firefox browser.
OUTPUT:-
Hope, you enjoyed reading it!!