Image naming conventions (registry/image:tag)
📖 Scenario: You are working with Docker images and need to understand how to name them properly. Docker images use a naming format that helps you identify where the image is stored, what the image is, and which version it is.
🎯 Goal: Learn how to create and use Docker image names with the correct format: registry/image:tag. You will build a simple example of naming an image with a registry, image name, and tag.
📋 What You'll Learn
Create a variable with a Docker image name using the format
registry/image:tagAdd a variable for the default registry
Extract the image name and tag from the full image name
Print the extracted image name and tag
💡 Why This Matters
🌍 Real World
Docker images are used to package applications and their environments. Knowing how to name and tag images helps you manage versions and sources clearly.
💼 Career
Understanding image naming conventions is essential for DevOps roles that involve container management, deployment pipelines, and working with container registries.
Progress0 / 4 steps