Run gui applications like firefox
with docker
as normal user, securing VNC
connection from host OS to docker with SSH
.
As display server used xvfb
.
As vnc server used x11vnc
.
Sharing X display server with gui application over VNC with SSH should be more secure then sharing X display server from host OS with docker.
For ex. for launching firefox.
- Downlod vncdocker.sh script
$ git clone https://github.com/ichensky/vncdocker
- Add
vncdocker.sh
to the PATH (not required) - Go to the
vncdocker/examples
directory or copy from itDockerfile
somewhere else and run instruction to build, run and connect to the docker container.
$ cd vncdocker/examples
$ vncdocker.sh configure firefox
$ vncdocker.sh buid
$ vncdocker.sh run
$ vncdocker.sh connect