Standalone noVNC client based on Alpine (available on Docker Hub). It allows to autoconnect to the VNC server, pass the VNC password, and set view-only mode usin environment variables.
The following example use Chrome in Docker (image created and maintained by Aerokube) which starts a VNC server:
- Start Docker container with VNC server:
docker run --rm --cap-add=SYS_ADMIN -p 4444:4444 -p 5900:5900 -e ENABLE_VNC=true selenoid/vnc:chrome_91.0
- Start Docker container with noVNC:
docker run --rm --name novnc -p 6080:6080 -e AUTOCONNECT=true -e VNC_PASSWORD=selenoid -e VNC_SERVER=172.17.0.1:5900 -e VIEW_ONLY=false bonigarcia/novnc:1.1.0
- Connect to: http://localhost:6080/
This approach is used in WebDriverManager.
bonigarcia/novnc (Copyright © 2021) is an open-source project created and maintained by Boni García, licensed under the terms of Apache 2.0 License.