Sunday, March 14, 2021

How to open GUI application on Docker

Install GUI application on Docker

# docker run it --net=host --env=DISPLAY --volume="$HOME/.Xauthority:/root/.Xauthority --name myOS cientos:latest

Your docker instance will be created and you will also login to the instance

# yum install firefox gedit httpd

# firefox 

Browser opens. Just type localhost

You will see default page.

No comments:

Post a Comment