Skip to content

dtinth/docker-novnc

 
 

Repository files navigation

Note Also check out https://github.com/dtinth/xtigervnc-docker

noVNC Display Container

This image is intended to be used for displaying X11 applications from other containers in a browser.

Image Contents

  • Xvfb - X11 in a virtual framebuffer
  • x11vnc - A VNC server that scrapes the above X11 server
  • noNVC - A HTML5 canvas vnc viewer
  • Fluxbox - a small window manager
  • xterm - to demo that it works
  • supervisord - to keep it all running

Usage

Variables

You can specify the following variables:

  • DISPLAY_WIDTH=<width> (1024)
  • DISPLAY_HEIGHT=<height> (768)
  • RUN_XTERM={yes|no} (yes)
  • RUN_FLUXBOX={yes|no} (yes)

Stand-alone Demo

Run:

$ docker run --rm -it -p 8080:8080 ghcr.io/dtinth/docker-novnc:main

Open a browser and see the xterm demo at http://<server>:8080/vnc.html

Usage in Docker Compose

version: '2'
services:
  x11:
    image: ghcr.io/dtinth/docker-novnc:main
    environment:
      # Adjust to your screen size
      - DISPLAY_WIDTH=1600
      - DISPLAY_HEIGHT=968
      - RUN_XTERM=no
    ports:
      - "8080:8080"

On DockerHub / GitHub

Thanks

This is based on theasp/docker-novnc.

About

noVNC Display Container for Docker

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Dockerfile 66.8%
  • Shell 33.2%