0
0
Dockerdevops~20 mins

Searching for images in Docker - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Docker Image Search Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate
2: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 nginx
AA list of Docker Hub images with 'nginx' in their name or description, including official and community images.
BAn error message saying 'nginx' image not found locally.
CA list of all images currently downloaded on your machine.
DThe detailed Dockerfile content of the 'nginx' image.
Attempts:
2 left
💡 Hint
Think about what 'docker search' does compared to 'docker images'.
💻 Command Output
intermediate
2:00remaining
What happens if you search for a non-existent image?
You run docker search someimagethatdoesnotexist123. What will the output be?
Docker
docker search someimagethatdoesnotexist123
AA syntax error message.
BA 'repository not found' error message.
CA list of all images on your local machine.
DAn empty list with headers but no images found.
Attempts:
2 left
💡 Hint
Consider how Docker Hub responds when no images match the search term.
Configuration
advanced
2:00remaining
How to limit Docker search results to official images only?
Which command limits the search results to only official images for 'redis'?
Adocker search redis --only-official
Bdocker search --filter=is-official=true redis
Cdocker search --official redis
Ddocker search redis --filter official
Attempts:
2 left
💡 Hint
Look for the correct syntax for filtering search results.
Troubleshoot
advanced
2: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?
AYour internet connection is blocking Docker Hub access.
BThe 'docker search' command only shows images you have pulled before.
CDocker Hub limits API search results to 25 by default.
DDocker CLI caches search results and may show outdated data.
Attempts:
2 left
💡 Hint
Think about API limits and default behaviors.
Best Practice
expert
2: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?
ASearch for 'node' images then pull the specific version tag manually.
BUse <code>docker search node:18</code> to search for version 18 images.
CUse <code>docker search node --filter=version=18</code> to filter by version.
DPull the latest 'node' image and then update it to version 18.
Attempts:
2 left
💡 Hint
Consider how Docker search handles tags and versions.