Sitemap
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.

Press enter or click to view image in full size

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.

Press enter or click to view image in full size

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.

Press enter or click to view image in full size

Step 3: Launching the GUI application in the container

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

Press enter or click to view image in full size

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

Press enter or click to view image in full size

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

Press enter or click to view image in full size

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.

Press enter or click to view image in full size

Step 6: Launching the Firefox

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

Press enter or click to view image in full size

yum install firefox

Now, we will run the firefox

Press enter or click to view image in full size

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

Thank you so much for reading this article.☺️

--

--

Shivangi Kesharwani
Shivangi Kesharwani

Written by Shivangi Kesharwani

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

No responses yet