Challenge - 5 Problems
Docker Image Search Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate2:00remaining
What is the output of searching for 'nginx' images?
You run the command
docker search nginx. What will the output show?Docker
docker search nginxAttempts:
2 left
💡 Hint
Think about what 'docker search' does compared to 'docker images'.
✗ Incorrect
The docker search command looks for images on Docker Hub matching the search term. It lists public images with their description and popularity.
💻 Command Output
intermediate2:00remaining
What happens if you search for a non-existent image?
You run
docker search someimagethatdoesnotexist123. What will the output be?Docker
docker search someimagethatdoesnotexist123Attempts:
2 left
💡 Hint
Consider how Docker Hub responds when no images match the search term.
✗ Incorrect
Docker search returns an empty list with column headers if no images match the search term.
❓ Configuration
advanced2:00remaining
How to limit Docker search results to official images only?
Which command limits the search results to only official images for 'redis'?
Attempts:
2 left
💡 Hint
Look for the correct syntax for filtering search results.
✗ Incorrect
The --filter=is-official=true option filters results to show only official images.
❓ Troubleshoot
advanced2:00remaining
Why does 'docker search' sometimes show fewer results than expected?
You searched for 'python' images but see fewer results than on Docker Hub website. What could cause this?
Attempts:
2 left
💡 Hint
Think about API limits and default behaviors.
✗ Incorrect
Docker Hub API limits search results to 25 images by default, so CLI shows only top matches.
✅ Best Practice
expert2:00remaining
What is the best practice to find a specific version of an image using Docker search?
You want to find an image for 'node' with version 18. Which approach is best?
Attempts:
2 left
💡 Hint
Consider how Docker search handles tags and versions.
✗ Incorrect
Docker search does not filter by tags or versions. You search images by name, then pull the specific tag/version you want.