docker build --no-cache -t <tag> <context>
Meaning: Builds the image without using cache.
Usage: Forces a fresh build of the image without using any cached layers.
Example: docker build --no-cache -t my-image .
rebuilds my-image
from scratch.