Docker Content Trust & Image Signing
Advanced · 45 minutes · 100 points
Master Docker Content Trust (DCT) to cryptographically sign and verify Docker images. In this advanced lab, you will run a private registry and a Notary signing server, generate signing keys, enable content trust, sign images with Notary, and enforce image verification policies to ensure supply chain security. Docker removed Content Trust from its CLI in version 29, so the lab pins Docker 28.5 — the last release that still has `docker trust`.
What you’ll learn
- Understand Docker Content Trust (DCT) and its role in image supply chain security
- Generate and manage Notary root and repository signing keys
- Sign Docker images using DOCKER_CONTENT_TRUST environment variable
- Verify signed images and enforce trust policies to block unsigned images
How this lab works
- Start the lab: One click starts a container on your computer with a real terminal: nothing to install by hand, nothing to clean up.
- Work through 4 tasks: Each task says what to build or fix. You do it yourself, in a real terminal, with hints when you get stuck.
- Check your work: Check my work runs each task’s checks in your container and says what passed and what to fix.
- Finish and keep going: 100 points, your progress saved, and the next lab to try.
What it runs on
- Runs: A container on your computer, with a real terminal
- Image: docker:28.5.2-dind
What you need
- A free LearnXops account
- The LearnXops desktop app for macOS, Windows or Linux
- Docker Desktop installed and running
- Basic Docker image familiarity
Topics: docker, content-trust, dct, image-signing, notary, security, supply-chain
Create a free account to start this lab.