noVNC Docker image
Standalone noVNC client based on Alpine (available on Docker Hub). It allows to autoconnect to the VNC server and pass the VNC password as environment variable.
Example
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 bonigarcia/novnc:1.0.0
This approach is used in WebDriverManager.
About
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.