Roël Couwenberg

Access Your Containers From a Centralised VNC Viewer

When working with multiple containers, managing individual VNC connections can become cumbersome. To simplify this process, I’ve created a centralised VNC viewer that allows you to access all your containers from a single interface. This setup provides a convenient way to monitor and interact with your containers without the need for multiple VNC connections.

Introducing vnc-viewer

The vnc-viewer repository provides a Docker image that acts as a centralised VNC viewer for your containers. It allows you to connect to multiple containers from a single interface, providing a unified view of your running services. Here are some of the key features:

Example

services:
  code:
    image: pixnyb/code
    hostname: code
    ports:
      - 8000:8000
    environment:
      - VSCODE_KEYRING_PASS=password
      - GIT_GLOBAL_USER_NAME=PixNyb
      - [email protected]
      - VNC_ENABLED=true
    volumes:
      - /etc/localtime:/etc/localtime:ro
    labels:
      - "vnc-viewer.enabled=true"
      - "vnc-viewer.label=VS Code"

  vnc:
    image: pixnyb/vnc-viewer
    hostname: vnc
    ports:
      - 3000:3000
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock

To get started, you can check out the vnc-viewer repository and follow the instructions in the README.