Tanmay Chauhan
2 min readMay 30, 2021

Launch a GUI Application In Docker

Task Description 📄

📌 GUI container on the Docker

🔅 Launch a container on docker in GUI mode

🔅 Run any GUI software on the container

In this Task, I have Launched the firefox application in GUI mode inside the docker container.

STEP 1: Create a directory and inside the directory create a file named Dockerfile using vim command.

Step 2: Inside the Dockerfile, I have mention the OS name , command to install firefox application and the location of firefox software.

Step 3:- Now Create an image in docker using the following command

docker build -t <name>.

Step 4:-Now your image has been created and firefox has been installed, we can check if the image is created or not using docker images command.

Step 5: Now finally, we will launch our GUI application using the following code below:

docker run — it — —env=”DISPLAY” — —net=host — —name=<name for your os> <image name>

Now the GUI application i.e. firefox has been launch Successfully.

Thank you for reading!!!!!

This task has been done under the mentorship of Mr. Vimal Daga sir in Summer program 2021

#vimaldaga #righteducation #educationredefine #rightmentor #worldrecordholder #linuxworld #makingindiafutureready #righeducation #arthbylw #docker #container

No responses yet