Challenge - 5 Problems
Docker Image Naming Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate1:30remaining
Understanding Docker image naming format
Which part of the Docker image name
registry.example.com/myapp/backend:1.2.3 specifies the version of the image?Attempts:
2 left
💡 Hint
The version is usually indicated after a colon at the end.
✗ Incorrect
The part after the colon (:1.2.3) is the tag, which commonly represents the version of the image.
💻 Command Output
intermediate2:00remaining
Output of docker pull with full image name
What will be the output status when running
docker pull registry.example.com/myapp/frontend:latest if the image exists in the registry?Attempts:
2 left
💡 Hint
Pulling an image shows download progress and digest.
✗ Incorrect
When pulling an image that exists, Docker shows the pulling progress and digest, then confirms the image is downloaded.
❓ Configuration
advanced2:00remaining
Correct image name for private registry
Which of the following is the correct Docker image name to push an image to a private registry at
myregistry.local:5000 with repository project/api and tag v5?Attempts:
2 left
💡 Hint
Private registries often include port numbers after a colon.
✗ Incorrect
The correct format includes the registry hostname with port, followed by repository and tag: myregistry.local:5000/project/api:v5.
❓ Troubleshoot
advanced1:30remaining
Error caused by invalid image tag format
What error will Docker show if you try to tag an image with an invalid tag containing uppercase letters, like
myapp/backend:VersionOne?Attempts:
2 left
💡 Hint
Docker tags must be lowercase and follow specific rules.
✗ Incorrect
Docker enforces tag format rules and will reject tags with uppercase letters, showing 'invalid reference format' error.
✅ Best Practice
expert2:30remaining
Choosing the best tag for continuous deployment
In a continuous deployment pipeline, which tag naming strategy is best to ensure traceability and avoid overwriting images unintentionally?
Attempts:
2 left
💡 Hint
Tags should help identify the exact version deployed.
✗ Incorrect
Semantic versioning tags provide clear version info and help track deployments. 'latest' can be overwritten and cause confusion.