GUI CONTAINER ON THE DOCKER
1.)Firstly we start the docker on the base operating system with the help of following command
systemctl start docker
2.)Now we will create a directory docker-GUI with the help of following command.
mkdir docker-GUI
3.)Now in this docker-GUI directory create a file with the help of following command
vim dockerfile
Now in this docker file write the following code
4.)Now we will build this image with the help of following command
docker build -t firefox_gui
5.)Now we can check the docker images with the help of following command
docker images
6.)Now with the help of following command lauch GUI application on the docker container.
docker run -it — env=”DISPLAY” — net=host — name=gui firefox_gui
7.)Now the GUI application will be launched.