Challenge - 5 Problems
Content Trust Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate2:00remaining
Enable Docker Content Trust and pull an image
What is the output when you run the following commands with Docker Content Trust enabled?
Assume the image is signed and available.
export DOCKER_CONTENT_TRUST=1
docker pull alpine:latestAssume the image is signed and available.
Docker
export DOCKER_CONTENT_TRUST=1 docker pull alpine:latest
Attempts:
2 left
💡 Hint
Docker Content Trust verifies signatures before pulling images.
✗ Incorrect
When DOCKER_CONTENT_TRUST=1 is set, Docker pulls trust metadata and verifies the image signature before downloading. If the image is signed and valid, it proceeds to pull the image.
🧠 Conceptual
intermediate1:30remaining
Purpose of Docker Content Trust
Which of the following best describes the main purpose of Docker Content Trust?
Attempts:
2 left
💡 Hint
Think about what 'trust' means in software distribution.
✗ Incorrect
Docker Content Trust uses digital signatures to ensure images come from a trusted source and have not been tampered with.
❓ Troubleshoot
advanced2:00remaining
Troubleshooting image pull failure with content trust
You try to pull a signed image with Docker Content Trust enabled but get this error:
What is the most likely cause?
Error: remote trust data does not exist for docker.io/library/nginx:latestWhat is the most likely cause?
Attempts:
2 left
💡 Hint
The error mentions 'remote trust data does not exist'.
✗ Incorrect
This error means the image does not have signed trust data published, so Docker cannot verify it with content trust enabled.
🔀 Workflow
advanced2:30remaining
Steps to sign a Docker image using Notary
What is the correct order of steps to sign a Docker image using Docker Content Trust and Notary?
Attempts:
2 left
💡 Hint
You need keys before pushing signed images.
✗ Incorrect
First, you generate or load signing keys, then tag the image, push it with content trust enabled to sign it, and finally verify the signature.
✅ Best Practice
expert3:00remaining
Best practice for managing Docker Content Trust keys
Which practice is the most secure and recommended way to manage Docker Content Trust signing keys in a team environment?
Attempts:
2 left
💡 Hint
Think about limiting exposure of the most sensitive keys.
✗ Incorrect
Root keys are highly sensitive and should be stored securely offline or in an HSM. Delegation keys allow safer daily signing without exposing root keys.