Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the command to pull an image from a Docker registry.
Docker
docker [1] nginx:latest Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'push' instead of 'pull' will try to upload an image instead of downloading.
✗ Incorrect
The docker pull command downloads an image from a registry to your local machine.
2fill in blank
mediumComplete the command to upload an image to a Docker registry.
Docker
docker [1] myapp:1.0
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'pull' will try to download instead of upload.
✗ Incorrect
The docker push command uploads your local image to a registry for sharing or deployment.
3fill in blank
hardFix the error in the command to tag an image before pushing it to a registry.
Docker
docker tag myapp:latest [1]/myapp:latest Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'latest' or 'myapp' alone misses the registry address.
✗ Incorrect
Before pushing, you tag your image with the registry address so Docker knows where to send it.
4fill in blank
hardFill both blanks to complete the explanation of why registries are used.
Docker
Registries store images to [1] sharing and [2] deployment.
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing negative words like 'disable' or 'complicate'.
✗ Incorrect
Registries enable sharing and simplify deployment of container images.
5fill in blank
hardFill all three blanks to complete the sentence about image distribution.
Docker
Images are [1] in registries, [2] by users, and [3] on servers.
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'deleted' instead of 'run' for the last blank.
✗ Incorrect
Images are stored in registries, pulled by users, and run on servers.