Running GUI Program Inside DOCKER

Let’s Start

1. First Launch the container using base image :

command : docker run -it — name gui_container centos:latest

2. install firefox inside the container :

command : yum install firefox -y

3. Install gedit inside the container :

command : yum install gedit -y

4. Commit the container and saved as a image :

5. Launch container using this image :

command : docker run -it — env=”DISPLAY” — net=host docker_gui

6. Run firefox inside the container:

command : /usr/bin/firefox

7. Run gedit inside the container :

command : /usr/bin/gedit

TASK COMPLETED !!!!