Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the command to list all local Docker images.
Docker
docker [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'docker run' instead of 'docker images'.
Using 'docker start' which is for containers, not images.
✗ Incorrect
The docker images command lists all local Docker images on your machine.
2fill in blank
mediumComplete the command to list local Docker images with their digests.
Docker
docker images --[1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using '--quiet' which only shows image IDs.
Using '--all' which shows intermediate images but not digests.
✗ Incorrect
The --digests option shows the digests of the images in the list.
3fill in blank
hardFix the error in the command to list all images including intermediate ones.
Docker
docker images [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using '--quiet' which only shows IDs.
Using '--remove' which is not a valid option here.
✗ Incorrect
The --all option lists all images including intermediate layers.
4fill in blank
hardFill both blanks to list images filtered by dangling status.
Docker
docker images --filter [1]=[2]
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'dangling=false' which shows non-dangling images.
Using 'label' filter which is unrelated here.
✗ Incorrect
The filter dangling=true lists images that are not tagged and can be removed.
5fill in blank
hardFill all three blanks to list images filtered by label and show only IDs.
Docker
docker images --filter [1]=[2] --[3]
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using '--all' instead of '--quiet' to show IDs.
Using wrong filter key instead of 'label'.
✗ Incorrect
Use --filter label=env=prod to filter images by label and --quiet to show only image IDs.