Using VNCserver + GUI application + Virtual Display in Docker container

后端 未结 2 476
终归单人心
终归单人心 2021-01-18 15:53

I would like to run firefox (or any graphical application) inside docker container.

My requirement: When I start the container, I should be creatin

2条回答
  •  感动是毒
    2021-01-18 16:50

    I managed to found the solution:

    Changed the script in Attempt 3 above as follows worked

    !/bin/bash
    
    Xvfb :1 -screen 0 800x600x16 &
    /usr/bin/x11vnc -display :1.0 -usepw &
    DISPLAY=:1.0
    export DISPLAY
    firefox
    

    Cheers.

提交回复
热议问题