Running graphical software inside a Docker container can be achieved by setting up a Docker container with access to a graphical environment. This typically involves running an X server inside the Docker container and configuring it to forward graphical output to your local machine's display. Here's a general approach to accomplish this:
Step 1: Install docker
yum install docker -y
Step 2: create a dockerfile and write these commands.
Step 3: Run this command for building the image.
docker built -t my_fire_fox .
Run this command to use graphical software
docker run -it --rm --name my_firefox_container --net=host -e DISPLAY=$DISPLAY my_fire_fox
Here your graphical software is launched