Launching GUI Application on Docker Container
Sep 6, 2021
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.