Launch GUI Application(Jupyter) on the Top of Docker.

Rishabh Arya
2 min readJun 1, 2021

--

๐Ÿ“Œ GUI container on the Docker

๐Ÿ’ข Launch a container on docker in GUI mode

๐Ÿ’ข Run any GUI software on the container.

๐ŸคฉLetโ€™s see the steps to launch it !!

1.) Check Docker status using command:

systemctl status docker

2.) Check for the Docker image by using: docker images

I am using latest version of centos here.

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

docker run -it โ€” name <container_name>โ€” net=host โ€” env=โ€DISPLAYโ€ centos:latest

3.) To run Jupyter Notebook, we need to install python using command:

yum install python3 -y

4.) Now install firefox to run Jupyter Notebook using command:

yum install firefox -y

5.) Now we have to install Jupyter using the command:

pip3 install jupyter

We are now ready to run Jupyter Notebook (GUI Application) in Docker

6.) Now we have to run this command to run Jupyter Notebook:

jupyter notebook โ€” allow-root

As soon as you hit enter, our Jupyter Notebook starts to run

So guys in this way we can run the jupyter on the top of dockerโ€ฆ๐Ÿ™Œ

In the same way, we can run any GUI Application on the top of Docker.

Thank you so much for reading !!!๐Ÿ™๐Ÿ™Œ

--

--

Rishabh Arya
Rishabh Arya

Written by Rishabh Arya

I am an active learner who likes to challenge every problem with a can-do mindset in order to make any idea a reality.

No responses yet