_desktopdocs
guide

The Computer Image

What's inside the Docker image — desktop, tools, resources, and configuration.

The repo's Dockerfile builds a Debian desktop with XFCE and Chromium. The named launcher and Docker Compose apply configurable limits to each container, defaulting to 2 CPUs and 3 GB of memory.

The image builds Git in a separate stage and leaves the build toolchain and unneeded Scalar binary out of the final image. Chromium remains included for browser automation. Build it locally with docker compose build; Docker can reuse unchanged layers on subsequent builds.

The desktop stack

The entrypoint (entrypoint.sh) starts the pieces in order:

text
Xvfb :99  →  XFCE session  →  x11vnc :5900  →  websockify/noVNC :6080  →  daemon :8095
PieceRole
Xvfb on :99Virtual X server — no display hardware needed
XFCELightweight, fully normal desktop environment
x11vncExposes the X display over VNC (container-internal)
websockify + noVNCStreams it to your browser at http://localhost:6080/vnc.html
daemonHTTP control plane on :8095 — see Daemon API

Preinstalled toolchain

Everything an agent needs to do real work:

CategoryTools
LanguagesPython 3
Editor / shellnano, bash (terminal app: xterm)
VCSgit
Networkcurl, ca-certificates
Searchripgrep
ImagesImageMagick — import (screenshots), convert
X11 controlxdotool, xvfb, x11vnc
Clipboardxclip
BrowserDebian Chromium, launched with the chromium wrapper

Build tools are not preinstalled (kept out for size). Install on demand:

bash
apt-get install -y --no-install-recommends build-essential

No node/npm either. If a task needs them:

bash
docker compose exec -d desktop bash -c 'apt-get update && apt-get install -y --no-install-recommends nodejs npm'

Files and persistence

  • /workspace inside the container is mounted from .desktop-workspaces/<name> with the named launcher or ./workspace with Compose by default.
  • Screenshots written to /workspace land directly on your host disk.
  • SDK worker logs live under /workspace/.workers/<title>/console.log.
  • Everything outside /workspace is ephemeral — reset with docker compose down && docker compose up -d.

Configuration

Set these in docker-compose.yml (or your shell env):

VariableDefaultPurpose
RESOLUTION1600x900Virtual display geometry (set in Compose)
DESKTOP_NAMEdefaultName used to select the desktop
DESKTOP_TOKENunsetAPI bearer token
DESKTOP_VNC_PASSWORDunsetPassword for the noVNC viewer
DESKTOP_MEMORY_LIMIT3gMaximum container memory
DESKTOP_CPUS2Maximum CPU time in cores
DISPLAY:99X display used by everything GUI
API_PORT8095Daemon port inside the container
GH_TOKEN / GITHUB_TOKENemptyGit auth + GitHub API calls from inside
GIT_AUTHOR_NAME / GIT_AUTHOR_EMAILeve-agent / eve@agent.localCommit identity for agent-made commits
GIT_COMMITTER_NAME / GIT_COMMITTER_EMAILsame as authorSame

Resources and health

yaml
mem_limit: ${DESKTOP_MEMORY_LIMIT:-3g}
cpus: ${DESKTOP_CPUS:-2}
restart: unless-stopped

The image healthcheck probes the viewer page and /api/health every 30 seconds.

Check health yourself:

bash
curl -sf http://localhost:8095/api/health   # {"ok": true} only when the X display answers
docker compose exec desktop pgrep -f xfce4-session   # desktop process alive

More operational detail in Docker setup.