Summer 2021 - Task 2
Task Description:
GUI container on the Docker
- Launch a container on docker in GUI mode
- Run any GUI software on the container

We will see how to Containerise a GUI app in Docker:
There can be two types of applications (usually services) that you can containerise,
- Applications that run as a Background Service (like a Database, WebServer, etc)
- GUI Applications that (obviously!) run in the foreground
We will go with the second option this time and explore how to launch a GUI application in the Docker container.
- As we can see that we don’t have any containers running.

2. We have to create a docker file, that will contain the code to launch the desired GUI application in the Docker container image say centos.

3. After writing the Dockerfile, we have to build the image using the command,
docker built -t <image_name:version>.


4. As we can see that, we have our container ready to run with the name “myguicont”.

5. After successfully building the image, we will run the container, it can either be in attached mode or detached mode. The GUI application, say here we have used Firefox, it will run in the foreground.

Hence in this way, we can launch any GUI application in the Docker container.
#vimaldaga #righteducation #educationredefine #rightmentor #worldrecordholder #linuxworld #makingindiafutureready #righeducation #arthbylw #docker #container
Thank You for reading!!!
Happy Learning!