Bird
0
0

What will happen if you run docker pull alpine with DOCKER_CONTENT_TRUST=1 set but the image is unsigned?

medium📝 Command Output Q13 of 15
Docker - Security
What will happen if you run docker pull alpine with DOCKER_CONTENT_TRUST=1 set but the image is unsigned?
AThe image will be pulled without verification
BDocker will automatically sign the image locally
CDocker will pull the image but warn about missing signature
DDocker will refuse to pull the image and show an error
Step-by-Step Solution
Solution:
  1. Step 1: Understand content trust behavior on unsigned images

    When content trust is enabled, Docker requires a valid signature to pull an image.
  2. Step 2: Identify expected Docker response

    If the image is unsigned, Docker refuses to pull it and shows an error to prevent unverified usage.
  3. Final Answer:

    Docker will refuse to pull the image and show an error -> Option D
  4. Quick Check:

    Content trust blocks unsigned image pulls [OK]
Quick Trick: Content trust blocks unsigned images from pulling [OK]
Common Mistakes:
  • Thinking Docker pulls unsigned images anyway
  • Assuming Docker signs images automatically
  • Believing Docker only warns but allows pull

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Docker Quizzes