Git Product home page Git Product logo

docker-novnc's Introduction

noVNC Display Container

This Docker container starts an X server with fluxbox, makes it accessible via noVNC, and then runs the command provided to it.

The container is based on debian:bullseye.

Usage (CLI)

docker run --rm -it -p 8080:8080 <imagename>

Then, open http://localhost:8080/.

To run a program, append it to the end of the command:

docker run --rm -it -p 8080:8080 <imagename> xterm

When run this way, the container will exit once the program you specified exits.

OR

ad your own configuration to supervisord config directory.

Supervisord Documentation

/app/conf.d/

Usage (As Dockerfile FROM base)

You can also use this container as a base image in a Dockerfile. Set up your Dockerfile as normal, then use CMD to specify what to run in the container (if anything). The following example installs wine, downloads the BGB Game Boy emulator, and sets it as the startup command for the container:

FROM <imagename>

# Install wine
RUN dpkg --add-architecture i386 && \
  apt-get update && \
  apt-get install -y wine wine32 unzip

# Download and unzip bgb
WORKDIR /root
RUN wget https://bgb.bircd.org/bgb.zip && \
  unzip bgb.zip

# Set bgb as the program to run when the container starts
CMD wine /root/bgb.exe

Architecture

This container is built using the following software:

  • Fluxbox - the window manager for the X session
  • noVNC - browser-based VNC client used to expose the X session to the host
  • TigerVNC - the X server and VNC server used
  • Supervisor - to start Fluxbox, noVNC, and TigerVNC

Credits

This container is based heavily on theasp/docker-novnc and suchipi/docker-novnc.

License

MIT

docker-novnc's People

Contributors

theasp avatar suchipi avatar sakurai-youhei avatar mettbrot avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.