docker build -t my-app:latest .
Meaning: Builds an image from a Dockerfile in the current directory.
Usage: To create a new image based on instructions in a Dockerfile
.
Example: docker build -t my-app:latest .
builds an image with the tag my-app:latest
.