Skip to content

flyqie/docker-novnc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-novnc

tigervnc, websokify, novnc and Nginx with s6-overlay in a docker image, forked from oott123/docker-novnc.

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)
  • HTTP_AUTH_USER - Nginx HTTP Basic Authentication Username; default: (blank)
  • HTTP_AUTH_PASSWD - Nginx HTTP Basic Authentication Password; default: (blank)

Ports

  • 5911 - tigervnc
  • 9000 - Nginx
  • 9001 - websockify

Warning: 9001 and 5911 only use VNC_PASSWD for authentication, and it is strongly recommended not to forward these two ports externally most of the time.

Docker Images

  • ./Dockerfile.amd64 - based on Ubuntu18.04 amd64, DockerHub tag latest/latest-amd64/amd64

  • ./Dockerfile.arm64 - based on Ubuntu18.04 arm64, DockerHub tag latest-arm64/arm64

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:

FROM flyqie/docker-novnc:latest
COPY vncmain.sh /app/vncmain.sh

And add foreground commands in your vncmain.sh:

#!/bin/bash
# Set them to empty is NOT SECURE but avoid them display in random logs.
export VNC_PASSWD=''
export USER_PASSWD=''
export HTTP_AUTH_USER=''
export HTTP_AUTH_PASSWD=''

xterm

Then build and run your docker image. That's it!

About

tigervnc, websokify, novnc and Nginx with s6-overlay in a docker image.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Perl 96.4%
  • Shell 3.6%