Abhimanyu Chandra Gautam
2 min readJun 6, 2021

Task_2

Hello connections…✌✌

GUI CONTAINER ON THE DOCKER

  • launch a container on docker in GUI mode
  • Run any GUI software on the container.

I am here with #Task2 from the #summertraining under the Mentorship of Mr. Vimal Daga sir. This task is interesting and challenging as well. But it was a great experience to solve it.

Implementation:

  1. For launching a container on docker in GUI mode, we can use the following command:

docker run -it — — name task2 — — net=host — — env=”DISPLAY” — — volume=”$HOME/.Xauthority:/root/.Xauthority:rw” centos

Now we are in the centos container. To prove it, we can run any program which is installed in the base OS but not in the container. Here, we tried to run the firefox program but as we can see, it says “command not found”

2. Now to run any GUI software on the container, we need to install a GUI based software.
We can install firefox using yum

Now, we can finally run the firefox program…

Thanks for reading

Thanks to Mr. Vimal Daga Sir , Preeti Chandak Ma’am and LinuxWorld Informatics Pvt Ltd for Organizing this training.

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

Abhimanyu Chandra Gautam
Abhimanyu Chandra Gautam

Written by Abhimanyu Chandra Gautam

0 Followers

I am student of UP gov. college KNIT Sultanpur

No responses yet