Launching a container on Docker in GUI mode & Run any GUI software on the container

--

Description:

  • GUI container on the Docker
  • Launch a container on Docker in GUI mode
  • Run any GUI software on the container

Prerequisites:

Go through the blog if u don’t have any idea about docker.

Blog link: https://medium.com/@karthikeyan_PCP/deploying-machine-learning-model-using-python-in-docker-container-2e4c7b5f4f77

Step 1: Start Docker and run the container

Step 2: Now install Firefox

Step 3: Now we will try to launch Firefox

Error comes up , since there is no DISPLAY environment variable specified

Step 4: Now we have to run the container by providing this command

‘’’docker run -it — net=host — env=”DISPLAY” centos’’’

  • Now Install Firefox

yum install firefox -y

Step 5:Now open the Firefox

Firefox is Launched

Step 6: Install Jupyter

Step 7 : Now launch Jupyter

Jupyter is launched

--

--

No responses yet