MLops Task 2

Malay Kaushik
Jun 1, 2021

Hello Everyone this is my first blog and in this I am going to show you how to launch GUI-Enabled Docker Container and run firefox inside it

Task description

  1. GUI container on the docker
  2. Launch a container on docker in GUI mode
  3. Run any GUI software on the container.

ok so now lets get started

So Let’s see what will happen when we will try to launch firefox(which requires Web UI ) inside a docker container.

so here we get ab error which clearly says that no display environment was specified.

So now to enable GUI we need to share our host X11 socket with the container and RUN docker container with environment variable DISPLAY.

TO launch GUI enabled docker run this command:

After launching this install firefox and using yum command try to launch it.

So task 2 completed properly.

Thank you for reading.

--

--