Shivangi Kesharwani
3 min readJun 1, 2021

--

GUI Application Inside the Docker Container

Task 02

🔸Launch a container on Docker in GUI mode.

🔸Run any GUI software on the container

🔸Before moving towards the implimentaion Docker installed in the base OS in which we are using Redhat8 as.

Step 1: Pull the Docker container centos:latest image from DockerHub.

To pull the centos:latest image,for this use ‘docker pull <image_name>:version’ command. If the version is not mention , by the user then by default it will pull the latest version of that image.

use the ‘docker images’ command to check the images.

Step 2: Launch Container

Now, we will use the centos image to create a new container.

Step 3: Launching the GUI application in the container

Before moving towards this we should first check that the application is present or not.

Step 4:Installation of gedit

As we have checked that the gedit software is not installed inside the container so we will first install gedit using the command.

yum install -y gedit

Now, we can check that it is working or not. As it is working so we successfully launch the gedit on the top of the docker container

Step 5: Launching Jupyter notebook

yum install jupyter

Now, we can check that it is working or not. As it is working so we successfully launch the gedit on the top of the docker container.

Step 6: Launching the Firefox

First, check whether the application/software is present or not.

yum install firefox

Now, we will run the firefox

Here successfully launched the GUI Application on the top of the docker container.📒

Thank you so much for reading this article.☺️

--

--

Shivangi Kesharwani

Hello!.. I’m fascinated by technology and enjoy learning and exploring it. I hope you find my information useful.