DEV Community

Cover image for Launching a GUI application inside the docker container
Soumya kumar naik
Soumya kumar naik

Posted on • Updated on

Launching a GUI application inside the docker container

STEP 1:- Launching Container
docker run -it --name ml --net=host --env="DISPLAY" --volume="$HOME/.Xauthority:/root/.Xauthority:rw" centos
image
After running this command it will lunch docker container name as ml
image

STEP 2:- Installing python3
yum install python3
image

STEP 3:- Installing jupyter notebook
pip3 install jupyter
image

STEP 4:- Installing Firefox
yum install firefox
image

STEP 5:- Launching jupyter notebook
jupyter notebook
image
image

Top comments (0)