The Secret in the Layer

A credential was copied into an image and deleted in the next instruction. Find it in the layer that still has it, rebuild without it, and harden what runs.

Project labadvanced~40 minFree

What you'll do

  • ✓Recover a credential from a built image rather than from source
  • ✓Understand why deleting a file does not remove it from a layer
  • ✓Pass a build credential without it becoming part of the image
  • ✓Harden the runtime and keep the service working

Lab outline

  1. 01The leak
  2. 02Clean build
  3. 03Runtime

Before you start

  • Containerize the Status API

Every lab runs on a real machine of your own in the browser — no installs, nothing to clean up — and checks your work automatically as you go.

← All Docker labs

Your first machine is
8 seconds away.

Learn by doing on real machines — and give every AI agent one of its own.

Free forever · No credit card · Cancel anytime

The Secret in the Layer — Docker lab | Kube Labs