![]() ![]() We will launch a Spotify application inside the container. Now that we know both concepts, it's time to implement them. S is screen number if you have multiple screens (usually 0).D is display number if you have multiple displays (usually 0).a hostname is the name or IP of the host.The format of the DISPLAY variable is like hostname:D.S The X server takes the value from this variable to know where it has to send the output or in simple words by this variable X server comes to know where your display is present. It is an environment variable that consists of ![]() Interesting fact:- With the help of X server you can send the output to some remote display over the network. The X server is just a socket that draws windows graphically on the display screen. Linux is mainly about CLI but with the help of X server, you can run graphical applications and everything else on Linux just like in Microsoft Windows. The x server is a way to implement a graphical user interface in Linux systems/kernel. ![]() it's just a single command but to understand that command you first need to understand two things:. So for running a graphical app inside a container, we need to share the base host’s display with the container.Īnd it is quite easy to do. That's because the Docker container is just CLI-based and needs a physical display to run a GUI app. If you have come across a question that whether or not you can run a graphical application inside a docker container because either you were curious or have created some GUI application that you want to run inside a container, then the answer to your question is YES, we can run GUI application inside a container.īut if you have tried it running by conventional docker command then it won't work. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |