Launching GUI Application on Docker Container

--

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

Installing python on container

yum install firefox

Step -4: Install python in the container

Installing python on 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.

--

--

Digambar Nandrekar
Digambar Nandrekar

Written by Digambar Nandrekar

DevOps | RHEL8 | Python | AI/ML | AWS | Docker | K8S |Ansible | Jenkins| Hadoop

No responses yet