0
0
Dockerdevops~10 mins

Searching for images in Docker - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the command to search for Docker images related to 'nginx'.

Docker
docker [1] nginx
Drag options to blanks, or click blank then click option'
Apull
Bbuild
Crun
Dsearch
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'docker pull' instead of 'docker search' will try to download an image.
Using 'docker run' tries to start a container, not search images.
2fill in blank
medium

Complete the command to search for images with the term 'python' and show only official images.

Docker
docker search --[1] is-official=true python
Drag options to blanks, or click blank then click option'
Afilter
Bofficial
Climit
Dquiet
Attempts:
3 left
💡 Hint
Common Mistakes
Using '--limit' controls number of results but does not filter official images.
Using '--quiet' hides output, not filters.
3fill in blank
hard

Fix the error in the command to search for 'mysql' images showing only those with more than 100 stars.

Docker
docker search --filter stars[1]100 mysql
Drag options to blanks, or click blank then click option'
A>
B=
C<
D==
Attempts:
3 left
💡 Hint
Common Mistakes
Using '>' or '==' causes syntax errors in the filter option.
Missing '=' means the filter is invalid.
4fill in blank
hard

Fill both blanks to search for official 'node' images and limit results to 5.

Docker
docker search --[1] is-official=true --[2]=5 node
Drag options to blanks, or click blank then click option'
Afilter
Blimit
Cquiet
Dofficial
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'quiet' instead of 'limit' will hide output but not limit results.
Using 'official' as a standalone option is invalid; it must be used with filter.
5fill in blank
hard

Fill all three blanks to search for 'redis' images, filter official ones, and limit results to 3.

Docker
docker search --[1] is-official=true --[2]=[3] redis
Drag options to blanks, or click blank then click option'
Afilter
Blimit
C3
Dquiet
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'quiet' instead of 'limit' hides output but does not limit results.
Forgetting to set the filter value to 'true' causes no filtering.