Docker CICI Bench v1 (Oct 7–11, 2026) · Docs Nov 26, 2026

Fast Docker builds on GitHub Actions (7 options)

Compare 7 Docker runner setups, CI Bench v1 container timings, and copy-paste Buildx and hybrid routing YAML.

In short

Use remote BuildKit (Depot, Blacksmith, Namespace, WarpBuild) for multi-stage or arm64 images, and managed VMs for standard amd64 jobs. On CI Bench v1 container, Vitko Runners took 179 s ($0.0060) vs. 239 s on GitHub 2 vCPU (78% lower cost; $0.002/min per sec, no remote Buildx DLC yet).

3 Docker caching architectures on GitHub Actions

Ephemeral runners wipe /var/lib/docker after every job. Each caching architecture targets a different slice of layer transfer, QEMU emulation, and base-image pulls:

Comparison of 3 Docker caching architectures on GitHub Actions: Buildx remote caches, remote BuildKit or Docker layer caching add-ons, and VM warm starts
ArchitectureHow state persistsWhere it winsTrade-offs & limits
Buildx remote cache (type=gha, type=registry, type=local)Exports and re-imports BuildKit blobs over the network on each ephemeral VM (or /tmp within one job).Any Linux VM runner (GitHub, Vitko, Ubicloud, RunsOn) with zero vendor lock-in.type=gha shares GitHub’s 10 GB/repo cap (7-day eviction) and adds transfer time; type=local resets on exit.
Remote BuildKit or DLC add-on (Depot, Blacksmith, Namespace, WarpBuild)Keeps a persistent NVMe BuildKit daemon or mounted layer volume warm across jobs.Multi-stage builds (Rust, C++, Next.js, Go) and native linux/amd64 + linux/arm64 images.Adds base plans or metered storage/builders ($20–$250/mo, $0.04–$0.06/min builders, or +$0.50/GB-mo DLC).
VM warm starts (vitko-inc/checkpoint@v1)Restores a default-branch VM copy with pre-pulled public images in /var/lib/docker and host tools.Docker Compose, Testcontainers, and classic host-daemon docker build workflows.Warms /var/lib/docker—not setup-buildx-action’s isolated docker-container store. Pull only public images first; place docker/login-action after.

CI Bench v1 container workload (9 configs measured)

30/30 runs per config (Oct 7–11, 2026) on mastodon/mastodon v4.7.2 linux/amd64 with upstream type=gha cache; wall time includes queue and boot (costs at 100,000 jobs/mo before self-hosted ops):

CI Bench v1 container workload (mastodon/mastodon v4.7.2) across 9 runner configurations: median wall time, p95 wall time, median queue wait, speed relative to GitHub-hosted 2 vCPU, and mean cost per job
ConfigurationMedian wallp95 wallMedian queuevs. GH 2 vCPUMean cost / job
RunsOn on AWS, self-hosted, 2 vCPUDefault settings (spot); all-in174 s188 s18.0 s1.37×$0.0060
Vitko Runners with warm starts and test parallelization178 s208 s1.0 s1.34×$0.0061
Google Cloud pool, self-hostedn4d-standard-2, always on, on-demand; all-in at 50% utilization178 s201 s1.0 s1.34×$0.0532
Vitko RunnersWithout warm starts or test parallelization179 s199 s1.0 s1.33×$0.0060
GitHub-hosted, 4 vCPUA larger machine size185 s215 s3.0 s1.29×$0.0424
Ubicloud standard, 2 vCPU213 s262 s18.0 s1.12×$0.0047
GitHub-hosted, 2 vCPUThe baseline (= 1.00)239 s282 s3.0 sbaseline$0.0266
AWS EC2, self-hosted, one VM per jobm8a.large, on-demand; all-in247 s300 s52.5 s0.97×$0.0436
Blacksmith, 2 vCPU386 s†663 s8.0 s0.62×$0.0307
  • Plain vs. warm+split (179 s vs. 178 s): checkpoint@v1 warms host /var/lib/docker, not Buildx’s docker-container store. Across all 12 workloads, plain Vitko hit 1.74× (84% lower cost, 95% CI 84%–85%) and warm+split 2.29×.
  • † Blacksmith caveat: Ran without cache-key so DLC missed; re-run planned (method note).
  • Tiers & exclusions: Ubicloud used opt-out Standard (213 s, $0.0047). At 10k jobs/mo, RunsOn’s index was 0.25 vs. Vitko 0.16. Depot didn’t start jobs; WarpBuild excluded (ToS §9).

7 runner & caching options for Docker builds (Nov 26, 2026)

Published rates, Docker layer caching, and architectures checked November 26, 2026:

Comparison of 7 GitHub Actions runner and Docker build caching options: Depot, Blacksmith, Namespace, WarpBuild, RunsOn BYOC AWS, GitHub-hosted ubuntu-latest, and Vitko Runners
OptionArchitecturePublished pricingDocker cache & multi-archWhen to choose & source
DepotRemote BuildKit + Actions · SOC 2Persistent NVMe remote BuildKit clusters + ephemeral EC2 Actions runners.$20/mo Dev (500 container, 2k Actions min, 25 GB) or $200/mo Startup; $0.04/min build overage, $0.006/min per-sec Actions.Native remote BuildKit cache; native amd64 + arm64 builders (no QEMU).Best for heavy multi-stage or multi-arch image builds (unmeasured in v1: jobs did not start). Depot.
Blacksmith2–32 vCPU VMs + DLC · SOC 2Bare-metal hosts running ephemeral VMs (Linux x64/Arm, Windows, macOS M4).$0.004/min 2 vCPU (3k free min/mo, per min); DLC & sticky disks +$0.50/GB-mo each.Mounted DLC add-on (requires cache-key input) + 25 GB/repo/wk cache.Pick for 4–32 vCPU + mounted DLC without a base plan. Ran 386 s† in v1 with cache-key unset. Blacksmith.
NamespaceBundled Docker + NVMe cacheManaged Linux AMD64/ARM64, macOS, Windows + remote container builders.Team $100/mo (1k builds, 100k unit-min), Business $250/mo, or PAYG ($0.05/build); $0.004/min prepaid ($0.006 overage).Remote BuildKit cache + Bazel/Nix NVMe volumes on AMD64 and ARM64.Pick for container-heavy, Nix, or Bazel orgs wanting bundled builds (unmeasured in v1). Namespace.
WarpBuildCloud/BYOC + Docker builders · SOC 2Managed Cloud or AWS/GCP BYOC VMs + dedicated 16-vCPU Docker builders.$0.004/min Cloud ($0.002 BYOC + cloud); Docker builders from $0.06/min; Cloud cache $0.20/GB-mo + $0.0001/op.Dedicated remote Docker builders + hosted cache; snapshot runners ($0.04/job + $0.025/hr).Pick for 16-vCPU builders, BYOC VPC, or GPU/macOS (excluded from v1 under ToS §9). WarpBuild.
RunsOn (BYOC AWS)EC2 Spot + ephemeral ECRCloudFormation in your AWS VPC launching fresh EC2 Spot VMs next to ephemeral ECR.AWS EC2 Spot (approx. $0.0008–$0.0009/min) + €300–€3,600/yr license (free OSS).Ephemeral ECR for BuildKit type=registry + S3 Magic Cache in-VPC.Measured 174 s (18.0 s queue, $0.0060 @ 100k/mo excl. ops). Best for high-volume AWS/Arm64. RunsOn.
GitHub-hosted2 vCPU / 4 vCPU Azure VMsEphemeral Azure Linux VMs; standard Buildx with type=gha or registry cache.$0.006/min (2 vCPU) or $0.012/min (4 vCPU) whole-min; 2k–50k included private min.No local BuildKit disk; 10 GB/repo type=gha cache (7-day eviction) or external registry.Baseline: 239 s ($0.0266) on 2 vCPU; 185 s ($0.0424) on 4 vCPU. GitHub.
Vitko Runners (beta)2 vCPU / 8 GB · $0.002/min per secFresh isolated VM per job, single-use registration, deleted afterwards; Docker Engine, Buildx, Compose v2 preinstalled.$0.002/min billed per second (no min), $0 plan, 2k free min/mo, $100/mo default cap.No remote Buildx DLC yet; uses type=gha/type=registry; checkpoint@v1 warms host /var/lib/docker public images.Measured 179 s ($0.0060, 78% lower cost, 1.33× vs. GH 2 vCPU). Strong fit for Compose/Testcontainers and standard amd64 CI. Pricing.

BuildJet shut down March 31, 2026 (migration guide); skip legacy buildjet-* YAML snippets.

Copy-paste YAML: Buildx registry cache & hybrid routing

1. Single-arch Buildx + registry cache on Vitko Runners: Persist docker-container layers with type=registry or type=gha (join private beta; set vitko-ubuntu-24.04 once activated):

jobs:
  docker-build:
    runs-on: vitko-ubuntu-24.04   # $0.002/min billed per second
    permissions:
      contents: read
      packages: write
    env:
      IMAGE: ghcr.io/${{ github.repository }}
    steps:
      - uses: actions/checkout@v5
      - uses: docker/setup-buildx-action@v3
      - uses: docker/login-action@v3
        with:
          registry: ghcr.io
          username: ${{ github.actor }}
          password: ${{ secrets.GITHUB_TOKEN }}
      - uses: docker/build-push-action@v6
        with:
          context: .
          push: ${{ github.ref == 'refs/heads/main' }}
          tags: ${{ env.IMAGE }}:${{ github.sha }}
          cache-from: type=registry,ref=${{ env.IMAGE }}:buildcache
          cache-to: type=registry,ref=${{ env.IMAGE }}:buildcache,mode=max

For local test-only builds (no push), swap to type=local,src=/tmp/.buildx-cache or type=gha with load: true.

2. Hybrid routing (remote BuildKit + warm Compose tests): Route multi-arch builds to Depot and Compose/Testcontainers jobs to Vitko. Pull only public images before checkpoint@v1; place private registry logins and non-GITHUB_TOKEN secrets strictly after it:

jobs:
  build-multiarch-image:
    runs-on: depot-ubuntu-24.04
    permissions:
      contents: read
      packages: write
    steps:
      - uses: actions/checkout@v5
      - uses: docker/login-action@v3
        with:
          registry: ghcr.io
          username: ${{ github.actor }}
          password: ${{ secrets.GITHUB_TOKEN }}
      - uses: depot/build-push-action@v1
        with:
          platforms: linux/amd64,linux/arm64
          push: true
          tags: ghcr.io/${{ github.repository }}:${{ github.sha }}
  integration-tests:
    runs-on: vitko-ubuntu-24.04   # $0.002/min billed per second
    steps:
      - uses: actions/checkout@v5
      - name: Warm /var/lib/docker with public images (no secrets before)
        run: |
          docker pull postgres:16-alpine
          docker compose -f compose.test.yml pull
      - uses: vitko-inc/checkpoint@v1
      # Place private registry logins or non-GITHUB_TOKEN secrets after this
      - run: docker compose -f compose.test.yml up -d
      - run: npm test

Sources & related guides

Frequently asked questions

Why is Buildx type=gha slow on large Dockerfiles?

Ephemeral runners start with an empty BuildKit store. type=gha compresses, uploads, and downloads layers over the network on every run while sharing a 10 GB/repo cap (7-day eviction), causing evictions and transfer overhead.

Does Vitko Runners offer remote Docker Buildx layer caching?

No remote Buildx DLC yet. Standard type=gha and type=registry caches work normally, while vitko-inc/checkpoint@v1 warms host /var/lib/docker public images for Compose and Testcontainers—not setup-buildx-action’s isolated docker-container store.

Where should docker/login-action go with vitko-inc/checkpoint@v1?

Strictly after checkpoint@v1. Non-GITHUB_TOKEN secrets before the checkpoint cancel saving, and container image storage is not scanned for credentials—pull only public images before checkpointing and authenticate to private registries afterwards.

Why did Blacksmith take 386 s, and why were Depot and WarpBuild excluded?

Blacksmith ran without its required cache-key input so DLC missed (re-run planned; cibench.com/method/#container-note). Depot jobs did not start in Oct 2026, WarpBuild was excluded under ToS §9, and BuildJet shut down March 31, 2026.

Try Vitko Runners on your own workflows

$0.002/min billed per second, 2,000 free minutes a month, and an admin-set spend limit. Switch a job by changing one runs-on line.