Build a Docker image from the Dockerfile in the current directory and tag it myapp:v1.
docker build -t myapp:v1 .
-t myapp:v1 tags the resulting image; . is the build context (sent to the daemon). Add --no-cache to force fresh layers.
Safety: Inspect state before stopping, pruning, or changing running containers.