Hi@akhtar,
Generally, if you run firefox inside docker container you will get the below error.
[root@1c3a22e43538 /]# firefox
Failed to open connection to "session" message bus: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
Running without a11y support!
Error: no DISPLAY environment variable specified
But you can use firefox inside your docker container. Follow the below given steps.
[root@vm1 ~]# xauth list
vm1/unix:0 MIT-MAGIC-COOKIE-1 b4c39c85be9a907749dd9395f4175b0d
[root@vm1 ~]# docker run -it --name firefox --net=host -e DISPLAY=$DISPLAY -v /tmp/.X11-unix centos:7 bash
[root@vm1 /]#
$ yum install firefox xauth
$ xauth add <cookies>
Hope this will help you.