docker build -t <tag> <context>
Meaning: Tags the image with a specific name and optionally a tag.
Usage: Assigns a name and tag to the image being built.
Example: docker build -t my-image:latest .
builds an image from the current directory and tags it as my-image:latest
.