https://github.com/oott123/docker-novnc
tigervnc, websokify, novnc and Nginx with s6-overlay in a docker image.
https://github.com/oott123/docker-novnc
docker novnc
Last synced: 2 months ago
JSON representation
tigervnc, websokify, novnc and Nginx with s6-overlay in a docker image.
- Host: GitHub
- URL: https://github.com/oott123/docker-novnc
- Owner: oott123
- License: mit
- Created: 2017-02-13T13:26:42.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2023-06-02T09:58:35.000Z (over 2 years ago)
- Last Synced: 2025-04-20T13:36:11.957Z (9 months ago)
- Topics: docker, novnc
- Language: Dockerfile
- Homepage: https://hub.docker.com/r/oott123/novnc/
- Size: 29.3 KB
- Stars: 34
- Watchers: 3
- Forks: 31
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# docker-novnc
[](https://hub.docker.com/r/oott123/novnc/) [](https://hub.docker.com/r/oott123/novnc/)
tigervnc, websokify, novnc and Nginx with s6-overlay in a docker image.
## Environment variables
* **`VNC_GEOMETRY`** - VNC geometry; default: `800x600`
* **`VNC_PASSWD`** - VNC password, no more than 8 chars; default: `MAX8char`
* **`USER_PASSWD`** - user `user` password. If you specify it, it will change the password for user `user` and add it to sudoers. NOTE: This password can get by programs so it's not safe. default: _(blank)_
## Ports
* **5911** - tigervnc
* **9000** - Nginx
* **9001** - websockify
## Add your foreground process
`vncmain.sh` is a file which is a placeholder for foreground process running in VNC.
You can write a Dockerfile like this:
```Dockerfile
FROM oott123/novnc:latest
COPY vncmain.sh /app/vncmain.sh
```
And add foreground commands in your `vncmain.sh`:
```bash
#!/bin/bash
# Set them to empty is NOT SECURE but avoid them display in random logs.
export VNC_PASSWD=''
export USER_PASSWD=''
xterm
```
Then build and run your docker image. That's it!