GUI Application Inside Docker

Today we’ll learn how we can run GUI Applications like Firefox inside a Docker Container.

Step 1:-To use docker first we have to start docker services. And make it enable so it will be on start mode permanently.

What is the meaning of this Command ?

The environment variable DISPLAY tells GUI programs on how to communicate with the GUI. A Unix system can run multiple X servers, i.e. multiple displays. These displays can be physical displays (one or more monitor), or remote displays (forwarded over the network, e.g. over SSH), or virtual displays such as Xvfb, etc. The basic syntax to specify displays is HOST: NUMBER; if you omit the HOST part, the display is a local one.

The Service of Docker Should start Otherwise it should give some errors.

X11 Port Explanation:

X11 is the graphical environment for most Unix or Unix-like systems, including *BSD and GNU/Linux; it provides access to screen, keyboard, and mouse. X11 is the Unix and Linux graphics drivers.

Thankyou.