Which command builds the current directory and tags the resulting image app:v1?
Answer & explanation
Answer: docker build -t app:v1 .
docker build uses the final argument as the build context. -t assigns the image reference.
Practice images with self-contained questions. Check your answer, then use the explanation to understand the reasoning.
Answer: docker build -t app:v1 .
docker build uses the final argument as the build context. -t assigns the image reference.