GUI Application on Docker Container

Step -1: pull an image for docker container

docker pull centos:latest

Step -2: Launch a container with GUI Display

docker run -it — — name <Container_name> -host=net — — env=”DISPLAY”volume=”$HOME/.Xauthority:/Xauthority:rw”<os_image:version>

Step -3:Install Firefox in the launched container

yum install firefox

Step -4: Install python in the container

yum install python3

Step -5: Install Jupyter in the container

pip3 install jupyter

Step -6: Launch jupyter in the container

jupyter notebook — allow-root

By opening any of the output URLs we can access the Jupyter notebook through Firefox application.

Thanks for reading.

You can connect me on LinkedIn.

--

--