GUI Applications On The Top Of DOCKER

GUI Applications On The Top Of DOCKER


What is Docker?

No alt text provided for this image

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:-

No alt text provided for this image
No alt text provided for this image

Step2:- Use "yum repolist" command to check whether the yum is configured successfully or not.

No alt text provided for this image

Step3:- Install Docker Software by using command given below.

No alt text provided for this image
No alt text provided for this image

Step4:- Verify the software whether it is successfully installed or not using "docker --version".

No alt text provided for this image

Step5:- Now, start the docker services and use "docker images" command for viewing the docker images available.

No alt text provided for this image

Step6:- For downloading the Centos Image from Docker Hub, use the following command.

No alt text provided for this image

Step7:- Create a separate Workspace for Docker.

No alt text provided for this image

Step8:- Create a Dockerfile using vi editor.

No alt text provided for this image
No alt text provided for this image

Step9:- Then build the Docker Image and use "docker images" command for verifying whether the image is successfully created or not.

No alt text provided for this image
No alt text provided for this image

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.

No alt text provided for this image
No alt text provided for this image


OUTPUT:-

No alt text provided for this image



Hope, you enjoyed reading it!!

To view or add a comment, sign in

More articles by Megha Varshney

  • Multi Node Kubernetes Cluster Using Ansible..

    What is a Kubernetes Cluster? A Kubernetes Cluster is a set of nodes that run containerized applications. Kubernetes…

    4 Comments
  • How to Configure Web Server Inside the Docker Container by Retrieving Container's IP Dynamically Using Ansible Playbook?

    Task Description 📃:- 🔰Create an Ansible playbook that will retrieve new Container IP and update the inventory. So…

  • Integration of WordPress with Amazon RDS:-

    What is AWS ? Amazon Web Services (AWS) is a secure cloud services platform, offering compute power, database storage…

  • What is Jenkins and How Netflix uses it?

    Hello guys, In this blog I’m going to explain the automation using Jenkins and a case study on Netflix. But before…

  • OpenShift and It's UseCases

    What is OpenShift ? OpenShift is a cloud development Platform as a Service (PaaS) developed by Red Hat. It’s an open…

  • Simple Queue Service by AWS

    What is SQS? SQS stands for Simple Queue Service. SQS is a managed message queue service offered by Amazon Web Services…

  • Neural Networks

    Neural Networks A Neural Network is a processing device, either an algorithm whose design is inspired by the design and…

  • Azure Kubernetes Service

    What is Azure Kubernetes Service? AKS stands for Azure Kubernetes Service provided by Azure Cloud. It is an open-source…

  • KUBERNETES USE CASES - AIRBNB And PINTEREST

    What is Kubernetes? KUBERNETES is a container management system developed in the Google platform. Kubernetes is the…

    2 Comments
  • THE SIMPLICITY OF ANSIBLE MEETS THE POWER OF AWS

    What is Ansible? Ansible is an open-source automation tool, or platform, used for IT tasks such as configuration…

    2 Comments

Others also viewed

Explore content categories