dock

Changelog

What changed in Dock, from the hosts up to the API.

  1. dock 0.3.6: branch, --network off and a host block for gVisor docks

    • CLI
    • Security
    • dock branch now works for local gVisor docks. A running source is stopped, its container is committed to a branch image and its /home/user/work volume is copied by a short-lived helper with no network, then the source is resumed. The branch starts as a new dock with its own token, port and network. Needs dock v0.3.6 or later.
    • With the runsc-suid runtime a branch carries rootfs changes, such as installed packages; with plain runsc only /home/user/work carries over. A branch image keeps a copy of the source's rootfs changes on disk until the source and its branches are removed, and dock rm removes the branch image.
    • dock new --runtime gvisor --network off now works. The container runs with no network: no internet, no DNS and no route to the host or other docks. exec, ssh and port still work through docker exec into the sandbox, at the cost of one docker exec per agent call, so a bit slower. Network off survives stop, resume and branch.
    • A network-on gVisor dock can no longer reach services on your machine: the bridge gateway, the host's other addresses including its LAN IP and docker0, 127.0.0.1 and other containers' published ports, even as root in the dock. dock adds a per-dock firewall rule on the host through a short-lived Docker helper, with no sudo needed. The rule is added on start, resume and branch and removed on stop and dock rm. DNS to your resolvers, internet access, the rest of your LAN, the agent port and dock port keep working.
    • The host block fails closed: if the rule cannot be installed, dock new and dock resume refuse with host_block_failed. Use --network off, or set DOCK_GVISOR_ALLOW_HOST=1 to run anyway with host access. A host firewall reload or flush can remove the rule from a running dock until it is stopped and resumed, docks created by an older dock get it on their next resume, and the IPv6 rule is added only where ip6tables works on the host.
    • Still not supported on gVisor docks: dock push and dock pull.
  2. dock 0.3.5: local docks without KVM with gVisor, clearer KVM errors

    • CLI
    • Security
    • dock new --runtime gvisor (or DOCK_LOCAL_RUNTIME=gvisor) runs local docks on Linux without KVM, as gVisor containers through Docker and runsc. It is opt-in: without the flag, local docks stay QEMU only. Needs dock v0.3.5 or later.
    • Optionally register a separate runsc-suid runtime (sudo runsc install --runtime=runsc-suid -- --allow-suid --overlay2=none, then restart Docker) for sudo and a filesystem that persists across stop and resume. Your other runsc containers keep the default. With plain runsc, no sudo, and only /home/user/work persists.
    • A gVisor dock has its own Docker bridge network and keeps Docker's default capabilities, never --privileged. gVisor is a strong sandbox, a different boundary from a hardware VM, and anyone who can use Docker on the machine can reach these docks. It can reach network services on the host through the bridge gateway, for example one listening on 0.0.0.0; the guest of a QEMU dock refuses the host loopback gateway, a gVisor dock has no such block.
    • Not yet supported on gVisor docks: --network off, dock branch, dock push and dock pull. There is one built-in image rather than Dockyard, and --disk is not enforced.
    • On Linux, no_accelerator errors and dock doctor now tell /dev/kvm permission denied (add your user to the kvm group, then log in again) from a missing KVM device (enable VT-x or AMD-V, load kvm_intel or kvm_amd, or turn on nested virtualization), each with a fix line and a pointer to the gVisor runtime.
  3. dock 0.3.4: local docks block the host's localhost, fresh ssh host keys

    • CLI
    • Security
    • With --network on (the default), local docks refuse new connections to the gateway 10.0.2.2, which QEMU maps to your machine's 127.0.0.1. The block covers the dock and its Docker containers, so code in a dock no longer reaches dev servers, databases or other docks' dock port forwards that listen only on your localhost. DNS, the internet and the agent are unaffected.
    • The block is a rule inside the guest, so root in the dock can remove it. It stops accidental access, not a hostile dock: use --network off for untrusted code. A host-enforced fix is tracked in docklet#98.
    • Copied docks (branches, pulled docks and docks started from a dock saved by name) make fresh sshd host keys on first boot, and keep them across stop and resume. Fleet hosts do this with any image.
    • Dockyard images images-2026.10.11.4, which dock 0.3.4 pins, carry both changes. Existing local docks get them only when created from these images. Works with control plane 0.2.3 and later.
  4. dock 0.3.3 and control plane 0.2.5: sturdier transfers, sshd at boot

    • CLI
    • Self-host
    • Security
    • dock push and dock pull retry with jitter, resume downloads safely with If-Range, time out stalled connections, stop cleanly on Ctrl-C or SIGTERM, and check free space first.
    • Disks stay sparse on every platform. On Windows, dock push no longer writes the full virtual disk size to a temp file.
    • With control plane 0.2.5 and docklet 0.3.3, dock pull sizes its free-space check from the dock's recorded data size (dataBytes). Otherwise it falls back to an estimate. Push and pull still need control plane 0.2.3 and docklet 0.3.2 or later.
    • Dockyard images images-2026.10.11.3: sshd starts at boot. New docks get the fix; existing docks keep their disk.
    • Local docks always run with IPv6 off. Known limit: with --network on (the default), a local dock can reach services that listen only on your machine's localhost, including other docks' dock port forwards. Use --network off for untrusted code.
  5. Benchmarks for the local engine

    • Benchmarks
    • CLI
    • A new benchmarks page shows P50, P95, P99 and success rate for create, exec, stop and resume, and branch on dock v0.3.2's local engine (QEMU on KVM), measured on a GitHub-hosted 4 vCPU runner. Success was 100% in every scenario.
    • It states the limits: nearest-rank percentiles from 10 or 50 samples, CLI start included in every time, nested virtualisation, no network hop, and no fleet hosts measured.
    • The harness and raw samples are in bench/ in usedock/dock, and the Bench workflow reruns it.
  6. Control plane 0.2.4: sturdier push and pull, fleet token kept off screen

    • Self-host
    • Security
    • Self-host setup never prints the fleet token. A host on another machine reads it at a silent prompt, and setup.sh --host passes it through the environment rather than the command line.
    • dock push parts uploaded through the control plane share a fixed memory budget and wait their turn instead of exhausting memory; the CLI retries a busy answer on its own.
    • Clearer errors: any request body over its size limit answers 413 instead of 500, an unsatisfiable dock pull download range answers 416, and an import into an environment whose egress allowlist no host can enforce is refused before any upload.
    • Mail sent without an SMTP server no longer logs full addresses, and waitlist confirmations no longer slow down the form. The rate limiter now needs Redis 7 or later, which the shipped compose files use.
  7. dock push and dock pull, and working connector triggers

    • CLI
    • Connectors
    • dock push <dock> --to <context> copies a stopped local dock's disk to a control plane as a new dock. --stop stops it first and --rm deletes the local dock after the push.
    • dock pull <dock> --from <context> copies a control plane dock's disk to a new stopped local dock.
    • Only the disk moves, as a full snapshot checked by sha256, so the dock boots fresh. Both directions need a microVM host and a dock built from a Dockyard image; hosts boot an imported disk only after verifying it.
    • Needs control plane 0.2.3 and docklet 0.3.2 or later. The self-host end-to-end test pushes a laptop dock to a fresh self-hosted control plane and pulls it back with its files.
    • Connector webhooks for Linear, Slack, Sentry and Figma, and repo links for triggered runs, work from control plane 0.2.3. In 0.2.0 to 0.2.2 these routes returned 404.
  8. Local docks, Dockyard images, private ports and egress allowlists

    • CLI
    • Images
    • Security
    • The dock CLI runs docks on your own machine with no account: QEMU with KVM on Linux x86_64 or arm64, or Windows Hypervisor Platform on Windows x86_64. macOS builds but is not tested yet. dock doctor checks what is missing.
    • Dockyard images ubuntu-24.04, node-22, python-3.12 and browser, for amd64 and arm64, signed with cosign. dock images lists them; a self-hosted host serves more after docklet image pull.
    • Exposed ports are private by default: members of the organization get in after sign-in.
    • An admin can limit an environment to an egress allowlist, enforced by a proxy on the host.
    • Self-hosted snapshots are encrypted at rest in the bundled MinIO, and control plane images are signed with cosign.
  9. Figma, Linear, Slack and Sentry connectors

    • Connectors
    • Security
    • An admin connects each tool once per workspace with a token, or with OAuth when the instance has an OAuth app for it.
    • Agents in a dock call the tool through the connector gateway with a dock-scoped token; the real token never enters the dock. Linear and Sentry are also reachable through their official MCP servers; Figma through its REST API.
    • Triggers: mention @dock in a Slack thread, assign a Linear issue to Dock or label it dock, mention @dock in a Figma comment, or opt in to new Sentry issues. The result posts back to the thread, issue or comment.
    • A run started by a trigger gets no workspace secrets and reaches its model through a run-scoped token. Only full Slack members, non-guest Linear members and allowlisted Figma users can start one.
  10. Dock is isolated Linux machines for agents

    • Product
    • One model: a dock is an isolated Linux machine with a persistent disk, a stable ID, and an optional name. It works the same on a laptop, your own servers, or Dock Cloud (coming soon).
    • Images: ubuntu-24.04 minimal, plus node-22, python-3.12, and browser.
    • Size is numbers: cpus, memory and disk, defaulting to 2 vCPU, 4 GB and 20 GB. The runtime, microvm or gvisor, is chosen by the host.
    • Verbs: new, exec and ssh, stop (disk kept, compute released), resume (same ID, same files), and branch.
    • Connectors keep credentials outside the dock, starting with GitHub and model keys.
  11. Run commands in a dock

    • API
    • Runtime
    • POST /v1/docks/:id/exec runs one command in a ready dock under bash -lc and returns exitCode, stdout, stderr and durationMs. Each stream is capped at 1 MiB.
    • timeoutSeconds defaults to 60. Per-call env is never stored or logged, cwd defaults to /home/user/work, and an Idempotency-Key replay returns the first result.
  12. Hosts dial out, and delta snapshots

    • Runtime
    • Storage
    • Security
    • Hosts enroll and connect outbound only: they register, report capacity, and long-poll for work. No inbound port per host.
    • Snapshots store only the 1 MiB blocks that differ from the base image.
    • Hosts move snapshot objects with presigned URLs, so storage credentials never reach a host.
    • The gVisor runtime runs containers as an unprivileged user with all capabilities dropped.
  13. Firecracker runtime

    • Runtime
    • Docks run as Firecracker microVMs under the jailer, with cgroup v2 CPU and memory limits.
    • Root disks are cloned with reflinks; snapshot objects are compressed with zstd in S3-compatible storage.
    • The scheduler places docks on online hosts with a matching CPU family and free capacity.
  14. GitHub webhooks and scoped tokens

    • GitHub
    • Security
    • Inbound GitHub webhooks are verified with HMAC-SHA256.
    • Installation tokens are scoped to a single repository and stored encrypted.

Start a dock in a minute.

Self-host Dock for free, or join the waitlist for Dock Cloud.