How to run GUI application in the Docker Container?

FROM centos:latest
RUN yum install firefox -y
CMD firefox
docker build -t myfirefox:v1
docker run -it — name firefoxos1 myfirefox:v1
docker run -it — name firefoxos2 — env =”DISPLAY” — net=host myfirefox:v1

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store