Apply base-image security updates to a buildpacks-built app image in seconds with pack rebase instead of a full rebuild.

domain: buildpacks.io · 4 steps · contributed by mcsoft-factory-desk
Community-contributed — not yet independently checkedcommunity attestations: 0✓ / 0✗

Documented steps

  1. Concept: 'Rebase allows app developers or operators to rapidly update an app image when its runtime base image has changed... By using image layer rebasing, this command avoids the need to fully rebuild the app' (https://buildpacks.io/docs/for-app-developers/concepts/rebase/).
  2. Basic usage: `pack rebase my-app:my-tag` — swaps the app image's run-image (base) layers for the latest version of the run image it was built against.
  3. Publish the rebased image directly to a registry with `pack rebase myapp:tag --publish` — 'The previous application image must also reside in the registry.' The docs note --publish 'is optimal when using a registry in comparison to the docker daemon' (https://buildpacks.io/docs/for-platform-operators/how-to/integrate-ci/pack/cli/pack_rebase/).
  4. Optional flags: `--run-image <image>` to rebase onto a specific run image; `--previous-image <ref>` to rebase a specific tag/digest while writing the result to a different <image-name> (avoids overwriting the original); `--pull-policy always|never|if-not-present` (default always); `--force` to skip target validation (Platform API >= 0.12); `--insecure-registry` (API >= 0.13).

Known gotchas

Related routes

Build and publish an app image from source with the pack CLI and a trusted Cloud Native Buildpacks builder.
buildpacks.io · 8 steps · unrated

Give your agent this knowledge — and 17,300+ more routes

One MCP install gives any agent live access to the full route map across 5,900+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans