This repository holds a Docker image configured to run a VNC server compatible with 3D acceleration using Nvidia GPUs.
Build the image locally:
cd src
docker build -t vnc-base .
Run the image locally:
docker run --rm -it --gpus all --shm-size=512m -p 6901:6901 -e VNC_DISABLE_AUTH=true --user root vnc-base
Open a browser and go to: https://localhost:6901
Available environment variables:
Variable | Description | Default |
---|---|---|
VNC_DISABLE_AUTH | Disable VNC authentication (no user/password required, use with caution) | false |
VNC_PW | Password for the basic auth (the user is always: "user") | vncpassword |
VNC_PORT | VNC port | 6901 |
VNC_ALLOW_CLIENT_TO_OVERRIDE_VNC_SETTINGS | Enable/disable the client to override the VNC settings, it does not have effect on the web UI | false |